ios - CoreData 无法解决未修改对象发生的错误。
<p><p>我尝试使用 NSManagedObject 访问浮点值</p>
<pre><code>float f = ;
</code></pre>
<p>并得到以下错误。我认为这个错误是当一个对象被删除并且你试图操纵它时引起的。我不更新也不删除原始对象的任何属性。是否还有其他原因会发生此错误?</p>
<pre><code>2011-07-29 13:02:54.797 AEsir *** Terminating app due to uncaught exception 'NSObjectInaccessibleException', reason: 'CoreData could not fulfill a fault for '0x6095d20 <x-coredata://6483BA33-F9AD-436C-91CB-0EE6E07F2FBE/Venue/p7>''
*** Call stack at first throw:
(
0 CoreFoundation 0x35c6464f __exceptionPreprocess + 114
1 libobjc.A.dylib 0x31cb9c5d objc_exception_throw + 24
2 CoreData 0x30a51e99 _PFFaultHandlerLookupRow + 1244
3 CoreData 0x30aa69c1 - + 20
4 CoreData 0x30aa5789 _PF_FulfillDeferredFault + 360
5 CoreData 0x30a50f1f _sharedIMPL_pvfk_core + 58
6 CoreData 0x30ab481b _pvfk_16 + 10
7 AEsir 0x0000b641 - + 240
8 Foundation 0x35f31183 _nsnote_callback + 142
9 CoreFoundation 0x35c3320f __CFXNotificationPost_old + 402
10CoreFoundation 0x35bcdeeb _CFXNotificationPostNotification + 118
11Foundation 0x35f2e5d3 - + 70
12AEsir 0x00036c67 - + 170
13AEsir 0x00036d4b - + 106
14AEsir 0x00036ffb - + 246
15StoreKit 0x35970da9 __NotifyObserverAboutChanges + 44
16CoreFoundation 0x35bcc3c5 CFArrayApplyFunction + 40
17StoreKit 0x359727f1 - + 92
18StoreKit 0x35972351 - + 860
19StoreKit 0x35971137 - + 98
20Foundation 0x35f31183 _nsnote_callback + 142
21CoreFoundation 0x35c3320f __CFXNotificationPost_old + 402
22CoreFoundation 0x35bcdeeb _CFXNotificationPostNotification + 118
23Foundation 0x35f2e5d3 - + 70
24AppSupport 0x35272455 - + 44
25AppSupport 0x35273781 _CPDNDeliverNotification + 204
26AppSupport 0x352721d7 _XDeliverNotification + 122
27AppSupport 0x35268dd7 migHelperRecievePortCallout + 138
28CoreFoundation 0x35c3ba97 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26
29CoreFoundation 0x35c3d83f __CFRunLoopDoSource1 + 166
30CoreFoundation 0x35c3e60d __CFRunLoopRun + 520
31CoreFoundation 0x35bceec3 CFRunLoopRunSpecific + 230
32CoreFoundation 0x35bcedcb CFRunLoopRunInMode + 58
33GraphicsServices 0x30b5d41f GSEventRunModal + 114
34GraphicsServices 0x30b5d4cb GSEventRun + 62
35UIKit 0x30dd9d69 - + 404
36UIKit 0x30dd7807 UIApplicationMain + 670
37AEsir 0x00008093 main + 70
38AEsir 0x00002d8c start + 52
)
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>如果持久性存储发生某些问题,您可能会收到错误消息,例如您从上下文使用的持久存储管理器中删除存储。 </p>
<p>不过,很可能托管对象已被删除,但您在别处保留了对它的引用。</p></p>
<p style="font-size: 20px;">关于ios - CoreData 无法解决未修改对象发生的错误。,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/6876605/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/6876605/
</a>
</p>
页:
[1]