由于 sqlite 断言,应用程序在设备上运行时崩溃
您好,
我已经使用 sqlite 数据库开发了该应用程序。当我在模拟器中运行该应用程序时,它工作得很好,但是当我使用设备应用程序进行测试时,它会崩溃。
这是我的代码 * -[sampleProjectAppDelegate copyDatabaseIfNeeded] 中的断言失败,/Users/xxxx/Desktop/new/sampleProject/Classes/sampleProjectAppDelegate.m:66 2010-07-29 05:52:40.141 sampleProject[259:207] * 由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“无法创建可写数据库文件,并显示消息“操作无法完成”。不允许操作' 。 2010-07-29 05:52:40.145 样本项目[259:207] 堆栈:( 852041337, 861292157, 852040821, 850687039, 9253, 8563, 827154211, 827153345, 827464035, 827462369, 827460907, 819342131, 851590557, 851588321, 827151529, 827144691, 8423, 8348 ) 抛出“NSException”实例后调用终止 程序收到信号:“SIGABRT”。
谢谢..
HI
I have developed the application on with sqlite Database .when i run the application in simulator it works perfect but when i tested with device application gets crashes.
this is my code
* Assertion failure in -[sampleProjectAppDelegate copyDatabaseIfNeeded], /Users/xxxx/Desktop/new/sampleProject/Classes/sampleProjectAppDelegate.m:66
2010-07-29 05:52:40.141 sampleProject[259:207] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to create writable database file with message 'Operation could not be completed. Operation not permitted' .
2010-07-29 05:52:40.145 sampleProject[259:207] Stack: (
852041337,
861292157,
852040821,
850687039,
9253,
8563,
827154211,
827153345,
827464035,
827462369,
827460907,
819342131,
851590557,
851588321,
827151529,
827144691,
8423,
8348
)
terminate called after throwing an instance of 'NSException'
Program received signal: “SIGABRT”.
Thanks..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论