Core Data migration failure between NSPersistenceFrameworkVersions 251 and 358

孤街醉人 提交于 2019-12-04 19:46:07

To clarify, use the unix sqlite3 tool with the path to the database file as a parameter. You can get your app's db file by pulling it from the organizer's device pane under Applications for a device... You'll get a package.

type ".headers on" for table headers

Find tables (.tables command) for entities with references between objects

Where Z_1REFERENCEDSETOFOBJECTS is the name of your table.

select * from Z_1REFERENCEDSETOFOBJECTS limit 2

to find the names of the table's headers; then run the following for the tables that have the REFLEXIVE column:

ALTER TABLE Z_1REFERENCEDSETOFOBJECTS ADD FOK_REFLEXIVE integer

Push it back down.

This bug appears to have been fixed in iOS 5.1 and OSX 10.7.3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!