Problem beim Speichern einer Document-Based Application

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Problem beim Speichern einer Document-Based Application

    Hallo Leute,

    ich bekomme bei meiner Document-Based Application beim Speichern jene Fehlermeldung:

    Quellcode

    1. ​Cannot perform operation since entity with name '(null)' cannot be found


    Wie kann ich debuggen um die Ursache zu finden?

    Danke für eure Hilfe

    LG
    Chris
  • In den StackTrace schauen (eventuell den Detailregler bis ganz nach rechts ziehen) um zu sehen was genau dieses Problem ausgelöst hat.

    Mutmaßlich hast Du entities, deren Attribut 'name' auf keinen Fall nil sein darf, und hast den Namen einer Entity nicht gesetzt.
    «Applejack» "Don't you use your fancy mathematics to muddle the issue!"

    Iä-86! Iä-64! Awavauatsh fthagn!

    kmr schrieb:

    Ach, Du bist auch so ein leichtgläubiger Zeitgenosse, der alles glaubt, was irgendwelche Typen vor sich hin brabbeln. :-P
  • ganz einfach, ich hab mir das *.xcdatamodeld angelegt und alles soweit Design't wie ich es benötige, und jetzt bin ich der Umsetzung in der GUI. Somit gibt es "Entities" die NOCH nicht verwendet werden.

    Aber aus Testgründen will ich mir schon Testdaten weg speichern, um sie nicht immer wieder neu zu laden.

    Quellcode

    1. 2014-03-06 14:15:01.774 myApp[13186:303] Cannot perform operation since entity with name '(null)' cannot be found
    2. 2014-03-06 14:15:01.974 myApp[13186:303] (
    3. 0 CoreFoundation 0x00007fff87fec25c __exceptionPreprocess + 172
    4. 1 libobjc.A.dylib 0x00007fff8d6d6e75 objc_exception_throw + 43
    5. 2 CoreFoundation 0x00007fff87fec10c +[NSException raise:format:] + 204
    6. 3 AppKit 0x00007fff8e700658 -[_NSManagedProxy _entity] + 141
    7. 4 AppKit 0x00007fff8e700515 -[_NSManagedProxy fetchRequestWithSortDescriptors:limit:] + 95
    8. 5 AppKit 0x00007fff8e95118a -[_NSManagedProxy _storesDidChange:] + 125
    9. 6 CoreFoundation 0x00007fff87fbae0c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
    10. 7 CoreFoundation 0x00007fff87eaea6d _CFXNotificationPost + 2893
    11. 8 Foundation 0x00007fff8ceb87ba -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
    12. 9 CoreData 0x00007fff8caed65d -[NSPersistentStoreCoordinator(_NSInternalMethods) _postStoresChangedNotificationsForStores:changeKey:options:] + 253
    13. 10 CoreData 0x00007fff8cadde56 -[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:] + 2342
    14. 11 AppKit 0x00007fff8e96f2c9 -[NSPersistentDocument configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error:] + 1268
    15. 12 AppKit 0x00007fff8ec15cd1 -[NSPersistentDocument(NSDeprecatedInternal) _configurePersistentStoreCoordinatorForURL:ofType:error:] + 156
    16. 13 AppKit 0x00007fff8e96fa9c -[NSPersistentDocument writeToURL:ofType:forSaveOperation:originalContentsURL:error:] + 818
    17. 14 AppKit 0x00007fff8e8062f3 -[NSDocument _writeSafelyToURL:ofType:forSaveOperation:forceTemporaryDirectory:error:] + 586
    18. 15 AppKit 0x00007fff8e806efc -[NSDocument _writeSafelyToURL:ofType:forSaveOperation:error:] + 28
    19. 16 AppKit 0x00007fff8e807069 -[NSDocument writeSafelyToURL:ofType:forSaveOperation:error:] + 356
    20. 17 AppKit 0x00007fff8e971003 -[NSPersistentDocument writeSafelyToURL:ofType:forSaveOperation:error:] + 601
    21. 18 AppKit 0x00007fff8e811f25 __66-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_22082 + 76
    22. 19 AppKit 0x00007fff8e813294 __66-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_22161 + 248
    23. 20 AppKit 0x00007fff8e81318d __66-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke2158 + 370
    24. 21 AppKit 0x00007fff8e811e10 __66-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke2073 + 1485
    25. 22 Foundation 0x00007fff8cf63a49 -[NSFileCoordinator(NSPrivate) _invokeAccessor:orDont:thenRelinquishAccessClaimForID:] + 224
    26. 23 Foundation 0x00007fff8d0d63d7 -[NSFileCoordinator(NSPrivate) _coordinateWritingItemAtURL:options:error:byAccessor:] + 702
    27. 24 AppKit 0x00007fff8e80dabf -[NSDocument _fileCoordinator:coordinateReadingContentsAndWritingItemAtURL:byAccessor:] + 421
    28. 25 AppKit 0x00007fff8e811144 __66-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke + 599
    29. 26 AppKit 0x00007fff8e7fe955 -[NSDocument continueFileAccessUsingBlock:] + 234
    30. 27 AppKit 0x00007fff8e7feded -[NSDocument _performFileAccessOnMainThread:usingBlock:] + 782
    31. 28 AppKit 0x00007fff8e7ffa74 -[NSDocument performAsynchronousFileAccessUsingBlock:] + 481
    32. 29 AppKit 0x00007fff8e810ede -[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:] + 148
    33. 30 AppKit 0x00007fff8e80d2bf __85-[NSDocument saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo:]_block_invoke_2 + 310
    34. 31 AppKit 0x00007fff8e83a630 -[NSDocument _commitEditingThenContinue:] + 501
    35. 32 AppKit 0x00007fff8e96e3e1 __62-[NSPersistentDocument _documentEditor:didCommit:withContext:]_block_invoke + 53
    36. 33 CoreFoundation 0x00007fff87f1d60c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
    37. 34 CoreFoundation 0x00007fff87f0ed25 __CFRunLoopDoBlocks + 341
    38. 35 CoreFoundation 0x00007fff87f0eaae __CFRunLoopRun + 1982
    39. 36 CoreFoundation 0x00007fff87f0e0b5 CFRunLoopRunSpecific + 309
    40. 37 HIToolbox 0x00007fff86423a0d RunCurrentEventLoopInMode + 226
    41. 38 HIToolbox 0x00007fff864237b7 ReceiveNextEventCommon + 479
    42. 39 HIToolbox 0x00007fff864235bc _BlockUntilNextEventMatchingListInModeWithFilter + 65
    43. 40 AppKit 0x00007fff8e3933de _DPSNextEvent + 1434
    44. 41 AppKit 0x00007fff8e392a2b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
    45. 42 AppKit 0x00007fff8e386b2c -[NSApplication run] + 553
    46. 43 AppKit 0x00007fff8e371913 NSApplicationMain + 940
    47. 44 myApp 0x0000000100001a62 main + 34
    48. 45 libdyld.dylib 0x00007fff87df35fd start + 1
    Alles anzeigen

    Dieser Beitrag wurde bereits 4 mal editiert, zuletzt von gigo1968 ()

  • ich komm einfach hier nicht weiter ... jetzt kommt die Fehlermeldung:

    Unsupported store type.
    2014-03-19 08:50:29.565 myApp[5223:303] (
    0 CoreFoundation 0x00007fff8d6c325c __exceptionPreprocess + 172
    1 libobjc.A.dylib 0x00007fff8e133e75 objc_exception_throw + 43
    2 CoreData 0x00007fff8c4787d1 -[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:] + 673
    3 AppKit 0x00007fff8ccb82c9 -[NSPersistentDocument configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error:] + 1268
    4 AppKit 0x00007fff8cf5ecd1 -[NSPersistentDocument(NSDeprecatedInternal)
    ....

    wo kann ich bei Xcode 5 den StackTrace einstellen?