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
-
-
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
-
Danke für die info bezüglich StackTrace, ich werde das mal versuchen.
Ich habe selbst auch die Fehlermeldung als solches verstanden, aber nach dem Prüfen des *xcdatamodel dürfte kein Attribut beben, es ist jedes auf "optinal" gesetzt -
Die Fehlermeldung sagt mir, das irgendwo satt ein Entityname ein nil übergeben wurde.
-
Michael schrieb:
Die Fehlermeldung sagt mir, das irgendwo satt ein Entityname ein nil übergeben wurde.
und wie kann dich die herausfinden? ... oder sind es jene Entity's die ich noch nicht verwende automatisch nil ? -
Wie kommst du an Entities die du nicht benutzt?
Gruß
Claus2 Stunden Try & Error erspart 10 Minuten Handbuchlesen.
Pre-Kaffee-Posts sind mit Vorsicht zu geniessen -
Also ich verstehe seine Verwunderung: Der Entitätsname steht bereits in der Model-Description. Eigentlich sollte es so etwas gar nicht geben.
@OP: Kannst du mal den Stacktrace posten?Es hat noch nie etwas gefunzt. To tear down the Wall would be a Werror!
25.06.2016: [Swift] gehört zu meinen *Favorite Tags* auf SO. In welcher Bedeutung von "favorite"? -
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
- 2014-03-06 14:15:01.774 myApp[13186:303] Cannot perform operation since entity with name '(null)' cannot be found
- 2014-03-06 14:15:01.974 myApp[13186:303] (
- 0 CoreFoundation 0x00007fff87fec25c __exceptionPreprocess + 172
- 1 libobjc.A.dylib 0x00007fff8d6d6e75 objc_exception_throw + 43
- 2 CoreFoundation 0x00007fff87fec10c +[NSException raise:format:] + 204
- 3 AppKit 0x00007fff8e700658 -[_NSManagedProxy _entity] + 141
- 4 AppKit 0x00007fff8e700515 -[_NSManagedProxy fetchRequestWithSortDescriptors:limit:] + 95
- 5 AppKit 0x00007fff8e95118a -[_NSManagedProxy _storesDidChange:] + 125
- 6 CoreFoundation 0x00007fff87fbae0c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
- 7 CoreFoundation 0x00007fff87eaea6d _CFXNotificationPost + 2893
- 8 Foundation 0x00007fff8ceb87ba -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
- 9 CoreData 0x00007fff8caed65d -[NSPersistentStoreCoordinator(_NSInternalMethods) _postStoresChangedNotificationsForStores:changeKey:options:] + 253
- 10 CoreData 0x00007fff8cadde56 -[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:] + 2342
- 11 AppKit 0x00007fff8e96f2c9 -[NSPersistentDocument configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error:] + 1268
- 12 AppKit 0x00007fff8ec15cd1 -[NSPersistentDocument(NSDeprecatedInternal) _configurePersistentStoreCoordinatorForURL:ofType:error:] + 156
- 13 AppKit 0x00007fff8e96fa9c -[NSPersistentDocument writeToURL:ofType:forSaveOperation:originalContentsURL:error:] + 818
- 14 AppKit 0x00007fff8e8062f3 -[NSDocument _writeSafelyToURL:ofType:forSaveOperation:forceTemporaryDirectory:error:] + 586
- 15 AppKit 0x00007fff8e806efc -[NSDocument _writeSafelyToURL:ofType:forSaveOperation:error:] + 28
- 16 AppKit 0x00007fff8e807069 -[NSDocument writeSafelyToURL:ofType:forSaveOperation:error:] + 356
- 17 AppKit 0x00007fff8e971003 -[NSPersistentDocument writeSafelyToURL:ofType:forSaveOperation:error:] + 601
- 18 AppKit 0x00007fff8e811f25 __66-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_22082 + 76
- 19 AppKit 0x00007fff8e813294 __66-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_22161 + 248
- 20 AppKit 0x00007fff8e81318d __66-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke2158 + 370
- 21 AppKit 0x00007fff8e811e10 __66-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke2073 + 1485
- 22 Foundation 0x00007fff8cf63a49 -[NSFileCoordinator(NSPrivate) _invokeAccessor:orDont:thenRelinquishAccessClaimForID:] + 224
- 23 Foundation 0x00007fff8d0d63d7 -[NSFileCoordinator(NSPrivate) _coordinateWritingItemAtURL:options:error:byAccessor:] + 702
- 24 AppKit 0x00007fff8e80dabf -[NSDocument _fileCoordinator:coordinateReadingContentsAndWritingItemAtURL:byAccessor:] + 421
- 25 AppKit 0x00007fff8e811144 __66-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke + 599
- 26 AppKit 0x00007fff8e7fe955 -[NSDocument continueFileAccessUsingBlock:] + 234
- 27 AppKit 0x00007fff8e7feded -[NSDocument _performFileAccessOnMainThread:usingBlock:] + 782
- 28 AppKit 0x00007fff8e7ffa74 -[NSDocument performAsynchronousFileAccessUsingBlock:] + 481
- 29 AppKit 0x00007fff8e810ede -[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:] + 148
- 30 AppKit 0x00007fff8e80d2bf __85-[NSDocument saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo:]_block_invoke_2 + 310
- 31 AppKit 0x00007fff8e83a630 -[NSDocument _commitEditingThenContinue:] + 501
- 32 AppKit 0x00007fff8e96e3e1 __62-[NSPersistentDocument _documentEditor:didCommit:withContext:]_block_invoke + 53
- 33 CoreFoundation 0x00007fff87f1d60c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
- 34 CoreFoundation 0x00007fff87f0ed25 __CFRunLoopDoBlocks + 341
- 35 CoreFoundation 0x00007fff87f0eaae __CFRunLoopRun + 1982
- 36 CoreFoundation 0x00007fff87f0e0b5 CFRunLoopRunSpecific + 309
- 37 HIToolbox 0x00007fff86423a0d RunCurrentEventLoopInMode + 226
- 38 HIToolbox 0x00007fff864237b7 ReceiveNextEventCommon + 479
- 39 HIToolbox 0x00007fff864235bc _BlockUntilNextEventMatchingListInModeWithFilter + 65
- 40 AppKit 0x00007fff8e3933de _DPSNextEvent + 1434
- 41 AppKit 0x00007fff8e392a2b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
- 42 AppKit 0x00007fff8e386b2c -[NSApplication run] + 553
- 43 AppKit 0x00007fff8e371913 NSApplicationMain + 940
- 44 myApp 0x0000000100001a62 main + 34
- 45 libdyld.dylib 0x00007fff87df35fd start + 1
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?
-
Ähnliche Themen