2013-10-05 44 views
0

當我將應用程序升級到新版本時,我的應用程序隨機崩潰。如何通過此錯誤調試我的代碼登錄IOS

我收到此錯誤日誌

<NSKeyValueObservationInfo 0x1467b680> (<NSKeyValueObservance 0x1454cbd0: Observer: 0x1467b680, Key path: operations, Options: <New: YES, Old: YES, Prior: NO> Context: 0x0, Property: 0x1454cac0> <NSKeyValueObservance 0x1461b290: Observer: 0x1473bdf0, Key path: operations, Options: <New: YES, Old: YES, Prior: NO> Context: 0x0, Property: 0x1454cac0>): An -observeValueForKeyPath:ofObject:change:context: message was received but not handled. Key path: operations Observed object: <NSOperationQueue: 0x1467bd00>{name = 'NSOperationQueue 0x1467bd00'} Change: { kind = 1; new = ("<ASIFormDataRequest: 0x15384200>"); old = (); } Context: 0x0 
AgendaNotes-[DocumentManager addToPriorityQueue:] 


# Binary Image Name Address Symbol 
0 CoreFoundation 0x30640e8b 
1 libobjc.A.dylib 0x3ac886c7 objc_exception_throw 
2 CoreFoundation 0x30640dcd 
3 Foundation 0x310050d3 
4 Foundation 0x30f70c51 
5 Foundation 0x30f708f5 
6 Foundation 0x30f6fff1 
7 Foundation 0x31012b13 
8 NyNotes  0x0003d329 -[DocumentManager addToPriorityQueue:]      
9 NyNotes   0x000453a7 -[DocumentManager asyncRequestInsertToken:] 
10 NyNotes   0x00017267 -[AgendaHandler handleAPNSToken:] 
11 NyNotes   0x00014ea9 -[AgendaHandler loginResponse:withResponse:] 
12 NyNotes  0x0004057f -[DocumentManager responseLogin:] 
13 NyNotes   0x00042edd -[DocumentManager requestHasFinishedCredentialRequest:] 
14 MyNotes  0x00042fc1 -[DocumentManager requestHasFinished:] 
15 MyNotes  0x00025495 -[ASIHTTPRequest reportFinished] 
16 Foundation 0x31024fdb 
17 CoreFoundation 0x3060bf27 
18 CoreFoundation 0x3060b3ef 
19 CoreFoundation 0x30609bdf 
20 CoreFoundation 0x30574541 CFRunLoopRunSpecific 
21 CoreFoundation 0x30574323 CFRunLoopRunInMode 
22 GraphicsServices 0x352782eb GSEventRunModal 
23 UIKit   0x32e2b1e5 UIApplicationMain 
24 MyNotes  0x00009907 main 
25 MyNotes  0x00008a18 start 

我不能得到任何此形成錯誤日誌。

+0

您沒有收到'An -observeValueForKeyPath:ofObject:change:context:message已收到但未處理.'? –

回答

2

還有答案: An -observeValueForKeyPath:ofObject:change:context:message已被接收但未處理。關鍵路徑:操作觀察對象:{name ='NSOperationQueue 0x1467bd00'}更改:{kind = 1; new =(「< ASIFormDataRequest:0x15384200>」); old =(); }上下文:0x0

我認爲你絕對更好的使用你自己的操作。這裏有堆棧溢出的很好的例子。如果您只爲iOS 7構建,則使用NSURLConnection。使事情變得更簡單,並且由於後臺操作而變得更加強大。

如果你想調試ASI框架,我建議爲所有的豁免添加一個斷點,看看你是否可以指出這一點。