I wrote iPhone application using core data. When I run application in simulator, its crashing with following error:
我用core data编写了iPhone应用程序。当我在模拟器中运行应用程序时,它崩溃了,错误如下:
2010-02-12 17:24:22.359 CrData[46122:4503] Unresolved error Error Domain=NSCocoaErrorDomain Code=513 UserInfo=0x3f484e0 "Operation could not be completed. (Cocoa error 513.)", { NSUnderlyingException = Error validating url for store; }
未解决的错误域=NSCocoaErrorDomain代码=513 UserInfo=0x3f484e0“操作无法完成”。(可可错误513。), {NSUnderlyingException =错误验证存储的url;}
Next time on wards its running well. Again if I delete the application and run the application, its crashing again. Can some one tell me how to solve this problem.
下次它会跑得很好。如果我删除应用程序并运行应用程序,它再次崩溃。有人能告诉我如何解决这个问题吗?
1 个解决方案
#1
3
Put a breakpoint in on objc_exception_throw
and then run it in the debugger. When it crashes it will break on throw and you can interrogate the value of the URL to see what is going wrong.
在objc_exception_throw上输入一个断点,然后在调试器中运行它。当它崩溃时,它会在抛出时中断,您可以查询URL的值,看看哪里出错了。
#1
3
Put a breakpoint in on objc_exception_throw
and then run it in the debugger. When it crashes it will break on throw and you can interrogate the value of the URL to see what is going wrong.
在objc_exception_throw上输入一个断点,然后在调试器中运行它。当它崩溃时,它会在抛出时中断,您可以查询URL的值,看看哪里出错了。