xcdatamodel not recompiled to MOM when bundle contents changes
| Originator: | me | ||
| Number: | rdar://12879190 | Date Originated: | 13-Dec-2012 |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | 4.6 (4H104c) |
| Classification: | Serious Bug | Reproducible: | Always |
We have a versioned Core Data model file, using XML serialization: Library/Library.xcdatamodeld/ Library/Library.xcdatamodeld/Library2_1.xcdatamodel/ Library/Library.xcdatamodeld/Library2_1.xcdatamodel/contents Library/Library.xcdatamodeld/Library2_2.xcdatamodel/ Library/Library.xcdatamodeld/Library2_2.xcdatamodel/contents Library/Library.xcdatamodeld/Library3.xcdatamodel/ Library/Library.xcdatamodeld/Library3.xcdatamodel/contents Library/Library.xcdatamodeld/Library3_prev.xcdatamodel/ Library/Library.xcdatamodeld/Library3_prev.xcdatamodel/contents When the 'contents' file changes outside of Xcode (typically through a source control operation, e.g. 'git pull'), Xcode often doesn't realize that the .xcdatamodel bundle itself needs recompiling. Touching the bundle sometimes seems to dirty it, but not always. (When this happens, the symptoms are typically "selector not recognized" when accessing altered managed properties.) The only reliable way I've found to get the model re-compiled is to remove the .momd from the build directory, or clean the whole project.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!