GSRegisterPurpleNamedPort SIGABRT in UIApplicationMain Before App Delegate Gets to Run Any Code

后端 未结 8 1499
深忆病人
深忆病人 2020-12-07 23:05

We recently put an update out for one of our apps and many users told us that they could no longer run the app because it crashed on startup.

We have been able to re

8条回答
  •  孤街浪徒
    2020-12-07 23:43

    If you use Core Data in your app and changed the schema, then you will often see this issue arise. What happens is the old version of the app will have an old version of the database (sqlite presumably) and when the new version of the app starts up, it expects the new version of the database as well. This causes a crash right at startup like this.

    The immediate fix for this is to delete the app and re-install it. We do this while in development. But when you are ready to push the new version, you'll need to setup a Mapping Model in order to migrate your database. There is a lot of info on data migration in the developer docs:

    http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/CoreDataVersioning/Introduction/Introduction.html

提交回复
热议问题