iPhone App:在特殊场景下启动时出现应用程序错误

发布于 2024-12-26 11:22:43 字数 554 浏览 1 评论 0原文

该应用程序已安装,并且大约一天没有使用,然后通过 iTunes 同步时更新,然后我启动应用程序,它显示:

“应用程序错误:发生了未解决的错误。请退出应用程序并重试

”启动时,它是一个警报视图,没有可供点击的按钮,然后应用程序会自行重置,但即使我重新启动设备,仍然显示相同的内容。摆脱它的唯一方法是删除该应用程序并重新安装。

编辑: 错误消息发布者:

if (![__persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:options error:&error])
{
    NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
    // SHOW THAT ERROR MESSAGE
}

那么这可能是什么原因呢?我猜这是由于测试人员同步应用程序而导致数据库损坏(但数据库模型在两个版本之间没有更改)?

谢谢!

The app was installed and has not been used for about one day, then it is updated when syncing via iTunes, then I start the app it says:

"Application Error: An unresolved error has occurred. Please quit the application and try again"

on starts, it is an alert view with no button to tap, then the app resets itself but still shows the same thing, even if I restart the device. The only way to get rid of it is to remove the app and reinstall.

edit:
the error message is posted by:

if (![__persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:options error:&error])
{
    NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
    // SHOW THAT ERROR MESSAGE
}

So what could be the reason of it? I guess it is caused by the tester syncing the app which corrupted the database(but the database model is not changed between two versions)?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文