Post

Replies

Boosts

Views

Activity

Reply to XCode reverts CoreData's .xccurrentversion
That's interesting. I created this model in Version 16.3 (16E140), which I believe is the current stable XCode release. I created new models using Editor > Add Model Version.... I just tested creating another model, and the new one still contains usedWithSwiftData="YES". I don't need my models to be SwiftData compatible at this moment. So, do you think removing this field would resolve the issue?
Apr ’25
Reply to XCode reverts CoreData's .xccurrentversion
Hi Ziqiao, Thanks for help me out. I tried to create a new project and indeed there is no issue. I tried to move my model that has the issue to the new project and the issue persist. So your speculation of my .xcdatamodeld being weird is correct. You can find my project that reproduces the issue here: https://drive.google.com/file/d/1nHYsl9JANR9YI4jpXA98wDWp28BGQh50/view?usp=sharing. Before opening the project, you can see that coredataissue/Model.xcdatamodeld/.xccurrentversion is GroupMetaData.xcdatamodel, but after opening the xcode project, the coredataissue/Model.xcdatamodeld/.xccurrentversion becomes Model.xcdatamodel.
Apr ’25