0

嗨,当我将应用程序升级到新版本时,我的应用程序随机崩溃。

我收到此错误日志

<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

我无法从这个错误日志中得到任何东西。

4

1 回答 1

2

答案是:An -observeValueForKeyPath:ofObject:change:context: 消息已收到但未处理。关键路径:操作观察对象:{name = 'NSOperationQueue 0x1467bd00'} 更改:{ kind = 1; 新=(“< ASIFormDataRequest:0x15384200>”);旧 = ( ); 上下文:0x0

我认为您绝对最好自己使用任何一种操作。这里有关于堆栈溢出的很好的例子。如果你只为 iOS 7 构建,那么使用 NSURLConnection。由于后台操作,使事情变得更加简单并且功能更强大。

如果你想调试 ASI 框架,我建议为所有豁免添加一个断点,看看你是否可以确定这一点。

于 2013-10-05T08:59:58.593 回答