1

我已经在这个问题上摸索了一段时间,但我似乎无法弄清楚。我的应用程序只崩溃了几次,给了我这个 StackTrace(但是我不确定错误发生在哪里,因为这是来自实时应用程序的错误报告):

0     libicucore.A.dylib                    0x31227788 ucol_getVersion + 0
1     TextInput                             0x3255efe7 _ZN2KB8WordTrie4loadERKNS_6StringE + 279
2     TextInput                             0x325584c1 _ZN2KB16StaticDictionary4loadERKNS_6StringE + 17
3     TextInput                             0x328c4d03 _ZN2KB19DictionaryContainerC2ERKNS_6StringES3_bb + 59
4     TextInput                             0x328c4ca1 _ZN2KB19DictionaryContainer6createERKNS_6StringES3_bb + 45
5     TextInput                             0x3254ffa1 _ZN14TIInputManager17load_dictionariesERKN2KB6StringES3_b + 25
6     TextInput                             0x32561003 -[TIKeyboardInputManagerZephyr loadDictionaries] + 223
7     TextInput                             0x32560c47 -[TIKeyboardInputManagerZephyr initWithConfig:] + 503
8     UIKit                                 0x367fff57 +[UIKeyboardInputManager sharedInstanceForInputMode:inHardwareKeyboardMode:] + 163
9     UIKit                                 0x367fefa7 -[UIKeyboardImpl setInputMode:userInitiated:] + 403
10    UIKit                                 0x367febbb -[UIKeyboardImpl setInputModeFromPreferences] + 379
11    UIKit                                 0x367fd491 -[UIKeyboardImpl initWithFrame:] + 465
12    UIKit                                 0x367fd183 +[UIKeyboardImpl sharedInstance] + 151
13    UIKit                                 0x3685f6af -[UIAlertView(Private) _updateFrameForDisplay] + 391
14    UIKit                                 0x3685c59d -[UIAlertView(Private) layoutAnimated:withDuration:] + 529
15    UIKit                                 0x3685c291 -[UIAlertView(Private) _layoutPopupAlertWithOrientation:animated:] + 105
16    UIKit                                 0x3685acd7 -[UIAlertView(Private) _performPopup:animationType:revealedBySpringBoardAlert:] + 407
17    UIKit                                 0x3685aaff -[UIAlertView(Private) _performPopup:animationType:] + 31
18    UIKit                                 0x3685a43f -[UIAlertView(Private) popupAlertAnimated:animationType:] + 35
19    *APP NAME*                            0x000f984d 0x000ef000 + 43085
20    libdispatch.dylib                     0x38080793 _dispatch_call_block_and_release + 11
21    libdispatch.dylib                     0x38083b3b _dispatch_queue_drain + 143
22    libdispatch.dylib                     0x3808167d _dispatch_queue_invoke + 45
23    libdispatch.dylib                     0x38084613 _dispatch_root_queue_drain + 211
24    libdispatch.dylib                     0x380847d9 _dispatch_worker_thread2 + 93
25    libsystem_c.dylib                     0x342fc7f1 _pthread_wqthread + 361

真正让我感到困惑的是第6行和第 13行,其中提到了我从未听说过的方法 - TIKeyboardInputManagerZephyr 或 UIAlertView(Private)??

有谁知道那些是什么意思?我觉得TIKeyboardInputManagerZephyr与自动更正功能有关,而且我有预感 UIAlertView 行与从 Apple 的一个私有 API 中弹出的某种对话框有关(但是我的应用程序没有使用这些)?

这些错误报告来自 iPhone 运行的 iOS 6.0.1

我真的不知道这个 - 如果它过于本地化,我想将任何答案重定向到更通用的目的:有没有办法挑选堆栈跟踪以更容易理解它,或者它只是有点经验的东西?

4

1 回答 1

2

您是否尝试从主线程以外的线程显示警报视图?

尝试将 UIAlertView 代码包装在一个块中并在主线程上调度该块。

这是与您的问题类似的问题: 更改为 iOS6 后应用程序崩溃 - ucol_getVersion https://devforums.apple.com/message/728324#728324

于 2012-12-08T23:39:35.570 回答