简体   繁体   中英

Xcode 4.2 Core Data Model Versioning Issues

I have a model that I created a long time ago. Everything works great, until I try to add a new model version. At runtime none of my attributes' User info key/value pairs show up. Reverting back to the previous xcdatamodel version works fine, only the new xcdatamodel doesn't work.

The User Info keys show up in the editor, but at runtime they do not appear. The - (NSDictionary *)userInfo on NSPropertyDescription returns an empty dictionary every time. This happens on all my entities if I change any user info key. If I create a new model version it works fine, until I mutate the User Info collection in the editor.

Yup, I had the same problem. See http://twoshotsofcocoa.com/?p=51 for the solution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM