2013-07-31 7 views
0

최신 Simperium 라이브러리로 내 응용 프로그램을 충돌하는 예외가 발생했습니다. 내가 할 수있는 한 모든 것을 설정했지만, 코어 데이터 변경을 시도하고 동기화하려고 할 때마다 예외가 발생합니다. 여기 Simperium에서 처리되지 않은 예외가 발생했습니다.

가 throw되는 예외입니다 :

2013-07-31 15:02:00:234 Twitter Translator[28336:303] Simperium enqueuing 168 object requests (Tweet) 
2013-07-31 15:07:36.446 Twitter Translator[28336:303] -[AppDelegate handleManagedObjectContextChange:]: unrecognized selector sent to instance 0x102609120 
2013-07-31 15:07:36.446 Twitter Translator[28336:303] An uncaught exception was raised 
2013-07-31 15:07:36.446 Twitter Translator[28336:303] -[AppDelegate handleManagedObjectContextChange:]: unrecognized selector sent to instance 0x102609120 
2013-07-31 15:07:36.449 Twitter Translator[28336:303] (
0 CoreFoundation      0x00007fff95799b06 __exceptionPreprocess + 198 
1 libobjc.A.dylib      0x00007fff897bb3f0 objc_exception_throw + 43 
2 CoreFoundation      0x00007fff9583040a -[NSObject(NSObject) doesNotRecognizeSelector:] + 186 
3 CoreFoundation      0x00007fff9578802e ___forwarding___ + 414 
4 CoreFoundation      0x00007fff95787e18 _CF_forwarding_prep_0 + 232 
5 CoreFoundation      0x00007fff9574beda _CFXNotificationPost + 2554 
6 Foundation       0x00007fff8c7a27b6 -[NSNotificationCenter postNotificationName:object:userInfo:] + 64 
7 CoreData       0x00007fff93b1b46f -[NSManagedObjectContext _mergeChangesFromDidSaveDictionary:usingObjectIDs:] + 3263 
8 Simperium-OSX      0x00000001001b5251 __34-[SPCoreDataStorage mergeChanges:]_block_invoke + 49 
9 libdispatch.dylib     0x00007fff94d11a2d _dispatch_barrier_sync_f_slow_invoke + 77 
10 libdispatch.dylib     0x00007fff94d0c0b6 _dispatch_client_callout + 8 
11 libdispatch.dylib     0x00007fff94d110c8 _dispatch_main_queue_callback_4CF + 275 
12 CoreFoundation      0x00007fff9573bb4c __CFRunLoopRun + 1644 
13 CoreFoundation      0x00007fff9573b0e2 CFRunLoopRunSpecific + 290 
14 HIToolbox       0x00007fff95247eb4 RunCurrentEventLoopInMode + 209 
15 HIToolbox       0x00007fff95247b94 ReceiveNextEventCommon + 166 
16 HIToolbox       0x00007fff95247ae3 BlockUntilNextEventMatchingListInMode + 62 
17 AppKit        0x00007fff8cc0e533 _DPSNextEvent + 685 
18 AppKit        0x00007fff8cc0ddf2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128 
19 AppKit        0x00007fff8cc051a3 -[NSApplication run] + 517 
20 AppKit        0x00007fff8cba9bd6 NSApplicationMain + 869 
21 Twitter Translator     0x0000000100005932 main + 34 
22 libdyld.dylib      0x00007fff8a7a37e1 start + 0 
23 ???         0x0000000000000003 0x0 + 3 
) 
2013-07-31 15:07:36.449 Twitter Translator[28336:303] *** Terminating app due to uncaught exception  'NSInvalidArgumentException', reason: '-[AppDelegate handleManagedObjectContextChange:]: unrecognized selector  sent to instance 0x102609120' 
*** First throw call stack: 
(
0 CoreFoundation      0x00007fff95799b06 __exceptionPreprocess + 198 
1 libobjc.A.dylib      0x00007fff897bb3f0 objc_exception_throw + 43 
2 CoreFoundation      0x00007fff9583040a -[NSObject(NSObject)  doesNotRecognizeSelector:] + 186 
3 CoreFoundation      0x00007fff9578802e ___forwarding___ + 414 
4 CoreFoundation      0x00007fff95787e18 _CF_forwarding_prep_0 + 232 
5 CoreFoundation      0x00007fff9574beda _CFXNotificationPost + 2554 
6 Foundation       0x00007fff8c7a27b6 -[NSNotificationCenter postNotificationName:object:userInfo:] + 64 
7 CoreData       0x00007fff93b1b46f -[NSManagedObjectContext _mergeChangesFromDidSaveDictionary:usingObjectIDs:] + 3263 
8 Simperium-OSX      0x00000001001b5251 __34-[SPCoreDataStorage mergeChanges:]_block_invoke + 49 
9 libdispatch.dylib     0x00007fff94d11a2d _dispatch_barrier_sync_f_slow_invoke + 77 
10 libdispatch.dylib     0x00007fff94d0c0b6 _dispatch_client_callout + 8 
11 libdispatch.dylib     0x00007fff94d110c8 _dispatch_main_queue_callback_4CF + 275 
12 CoreFoundation      0x00007fff9573bb4c __CFRunLoopRun + 1644 
13 CoreFoundation      0x00007fff9573b0e2 CFRunLoopRunSpecific + 290 
14 HIToolbox       0x00007fff95247eb4 RunCurrentEventLoopInMode + 209 
15 HIToolbox       0x00007fff95247b94 ReceiveNextEventCommon + 166 
16 HIToolbox       0x00007fff95247ae3 BlockUntilNextEventMatchingListInMode + 62 
17 AppKit        0x00007fff8cc0e533 _DPSNextEvent + 685 
18 AppKit        0x00007fff8cc0ddf2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128 
19 AppKit        0x00007fff8cc051a3 -[NSApplication run] + 517 
20 AppKit        0x00007fff8cba9bd6 NSApplicationMain + 869 
21 Twitter Translator     0x0000000100005932 main + 34 
22 libdyld.dylib      0x00007fff8a7a37e1 start + 0 
23 ???         0x0000000000000003 0x0 + 3 
) 
libc++abi.dylib: terminate called throwing an exception 

내가 오류가 일어나고있는 줄 생각이 하나입니다

 dispatch_sync(dispatch_get_main_queue(), ^{ 
    [__managedObjectContext mergeChangesFromContextDidSaveNotification:notification]; 
}); 

하지만 난 확실히 내 버그로 100 % 아니에요 사냥 :(

누구나 어떤 아이디어를 가지고 위대한 아닌가요?

감사

가레스

답변

1

이 줄 :

2013-07-31 15:07:36.446 Twitter Translator[28336:303] -[AppDelegate handleManagedObjectContextChange:]: unrecognized selector sent to instance 0x102609120 

당신이 알아야 할 모든 것을 알려줍니다. 응용 프로그램 대리인에게 handleManagedObjectContextChange: 메시지를 보내려고하지만 해당 메서드를 구현하지 않습니다. 따라서 메시지를 보내는 위치를 식별하고 메시지를 보내려는 대상으로 메시지가 실제로 전송되는지 확인해야합니다.

이 답변은 다소 일반적인 것일 수 있지만, 한 줄의 코드 만 제공했음을 알 수 있습니다. 스택 추적의 모양에서 통지를 처리하는 영역을 식별하십시오. 찾고있는 좋은 장소 일 것입니다.

+0

오, 그건 바보 같았습니다. 이것은 구현 된 기능이며 라이브러리를 제거 할 때 제거되었습니다. 라이브러리의 최신 빌드를 다시 추가했지만이 메소드를 다시 구현하지 않았습니다. –

관련 문제