开发者

Xcode 4 Data Model Versioning bug?

Installed Xcode 4 and it all seems fine开发者_开发问答... except, when I try to add versioning to a Core Data model. In the instructions it says I should select the data model in the navigator and then "Choose Editor > Convert to Versioned Model." Well, the "Editor" menu does not have an item "Convert to Versioned Model"!!! Skipping this step crashes Xcode 4. Also, I can't believe that there is no support for Xcode 4 now that it is a pay product!


First select your xcdatamodeld file and go to the Editor Menu and select the Add Model Version option. After you create your new version select again the xcdatamodeld file and be sure you have the Utilities sidebar shown and select the first icon, the File Inspector one. You will have a Versioned Data Model option.

Hope that was what you were looking for.


There are currently several issues with the core data model editor in Xcode 4. I highly recommend installing Xcode 3 next to Xcode 4 and doing all of your model work in Xcode 3 until these issues are addressed.

I also recommend filing a feedback so that you can add your voice to this issue.


I had the same issue with xcode 4.5. And after some time I have resolved it:

  1. Move my test.xcdatamodel file to the root in the project navigator.
  2. Highlight file in a new location and select Editor -> Add Model Version...

And xcode automatically creates *.xcdatamodeld with two files : 'test 2.xcdatamodel' and 'test.xcdatamodel'. And 'test 2.xcdatamodel' is marked as current version.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜