satyam
satyam

Reputation: 61

iPhone CoreData application crashing for first time start

I wrote iPhone application using core data. When I run application in simulator, its crashing with following error:

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; }

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.

Upvotes: 3

Views: 557

Answers (1)

Marcus S. Zarra
Marcus S. Zarra

Reputation: 46728

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.

Upvotes: 3

Related Questions