Finally, two days later, trying to solve this problem, I found a solution here:
How to create a magic folder / package .xcdatamodeld?
Now I'm finishing a project that another developer started, and it seems that he did not push the latest changes to the repo, but these changes were in the application on the device, and when I deleted the application, I deleted the right .xcdatamodeld file. The problem was that I only had the MyApp.xcdatamodel file in the project, and this was the reason for the presence of the empty momd folder.
To create the correct hierarchy of the data model, the solution was quite simple:
- Choose
MyApp.xcdatamodel - Go to Editor> Add Model Version ...
And that MyApp.xcdatamodel file in MyApp.xcdatamodeld . Now momd folder has mom files and the application works fine. The only problem is that I have two MyApp.xcdatamodel , one with a green icon selected, but both with the same content, so no problem.
source share