IPhone kernel data application crash

I can complete my iphone application using the basic data inside. But the first time I run it in the simulator or on the device, it crashes with the following error:

2010-03-18 10: 55: 41.785 CrData [1605: 4603] Unresolved error Domain error = NSCocoaErrorDomain Code = 513 UserInfo = 0x50448d0 "Operation could not be completed. (Cocoa error 513.)", {NSUnderlyingException = URL validation error addresses for storage; }

When I run the application again in the simulator or on the device, it works fine. I can not determine the exact problem. Can anyone advise me how to proceed further?

+3
source share
2 answers

You need to deploy the errors and see what happens. Inside this error (which you can set a breakpoint on objc_exception_thrown to catch) is a userInfo dictionary that you can poll to find out what the main errors are.

Update

What does your creation code look like NSPersistentStoreCoordinator?

You added a breakpoint and did po [error userInfo]it to see if there were any additional errors in the user information?

Core Data can and does send you a hierarchy of errors, and often on a small amount of information is displayed at the top error. Expanding errors using the debugger is best to identify the root causes.

Update

513 , . . , , ..... .

, ? , . , .

+3

8.2 ( ) . "513", . 8.1, , 8.2 , . .

, .

NSFileManager copyItemAtURL: toURL: .

0

Source: https://habr.com/ru/post/1737466/


All Articles