2
我創建的聊天應用程序,我使用了XMPP代碼,應用程序崩潰 - = XMPP爲iPhone
這裏是應用程序日誌顯示崩潰,請如果任何人知道的解決方案,幫助我
終止應用程序由於未捕獲的異常
'NSInvalidArgumentException' 的,
原因: ' - [XMPPvCardCoreDataStorage clearvCardTempForJID:xmppStream:]:無法識別的選擇發送到實例0x29bbe0'
這裏是堆棧在第一擲
調用堆棧: ( 0的CoreFoundation 0x3172464f __exceptionPreprocess + 114
1 libobjc.A.dylib 0x3523fc5d objc_exception_throw + 24
2 CoreFoundation 0x317281bf -[NSObject(NSObject) doesNotRecognizeSelector:] + 102
3 CoreFoundation 0x317278ad -[NSObject(NSObject) forwardInvocation:] + 36
4 CoreFoundation 0x3172768d ___forwarding___ + 576
5 CoreFoundation 0x3169e180 _CF_forwarding_prep_0 + 48
6 iPhoneXMPP 0x0003681d -[XMPPvCardAvatarModule xmppStreamWillConnect:] + 132
7 CoreFoundation 0x317277a4 __invoking___ + 68
8 CoreFoundation 0x3169f43d -[NSInvocation invoke] + 108
9 CoreFoundation 0x3169f0d9 -[NSInvocation invokeWithTarget:] + 36
10 iPhoneXMPP 0x0002a383 __42-[GCDMulticastDelegate forwardInvocation:]_block_invoke_0 + 70
11 libdispatch.dylib 0x3600a8e7 _dispatch_call_block_and_release + 10
12 libdispatch.dylib 0x36005ec1 _dispatch_queue_drain + 240
13 libdispatch.dylib 0x36006033 _dispatch_queue_invoke + 78
14 libdispatch.dylib 0x360055f1 _dispatch_worker_thread2 + 192
15 libsystem_c.dylib 0x3640b591 _pthread_wqthread + 264
16 libsystem_c.dylib 0x3640bbc4 _init_cpu_capabilities + 4294967295
)
在此先感謝
否 - 和V3的XMPP一樣 - 這個clearvCard方法轉移到了XMPPvCardAvatarModule,所以我不認爲這個方法可行。 –
任何其他解決方案.. –
S你是正確的。但我認爲無效的方法調用是問題.. –