-2

我正在使用带有四个选项卡的选项卡栏应用程序,在选项卡中的两个视图之间切换时,我遇到了问题,告诉我为什么会发生这种情况并帮助我解决这个问题。这是应用程序崩溃时的日志。

 Mon Jul 16 21:07:55 unknown MyApp[167] <Warning>: NVVC Dealloc 
        Mon Jul 16 21:08:23 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.company.MyApp[0xe271]) Bug: launchd_core_logic.c:2688 (24132):10 
        Mon Jul 16 21:08:23 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.company.MyApp[0xe271]) Working around 5020256. Assuming the job crashed. 
        Mon Jul 16 21:08:23 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.company.MyApp[0xe271]) Job appears to have crashed: Segmentation 
        fault 
        Mon Jul 16 21:08:23 unknown SpringBoard[29] <Warning>: Application 'MyApp' exited abnormally with signal 11: Segmentation fault 
        Mon Jul 16 21:09:04 unknown lockdownd[20] <Error>: (0x403000) handle_connection: Could not receive USB message #7 from Xcode. Killing connection 
        Mon Jul 16 22:00:39 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.mobilemail[0x55fb]) Exited: Killed 
        Mon Jul 16 22:00:39 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.mobilephone[0xa13c]) Exited: Killed 
        Mon Jul 16 22:00:39 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.MyApp.app[0x137]) Exited: Killed 
        Mon Jul 16 22:00:39 unknown com.apple.launchd[1] <Notice>: (com.apple.accessoryd) Exited: Killed 
        Mon Jul 16 22:00:41 unknown SpringBoard[29] <Warning>: Application 'Mail' exited abnormally with signal 9: Killed 
        Mon Jul 16 22:00:41 unknown SpringBoard[29] <Warning>: Memory level is not normal (15%). Delaying auto-relaunch of 'Mail' for 30 seconds. Mon Jul 16 22:00:41 unknown SpringBoard[29] <Warning>: Application 'app' exited abnormally with signal 9: Killed 
        Mon Jul 16 22:00:42 unknown SpringBoard[29] <Warning>: Application 'Phone' exited abnormally with signal 9: Killed 
4

2 回答 2

0

根据查看您的崩溃日志,您的应用程序(即“MyApp”)由于分段错误而崩溃。它可能有不同的原因,可能的原因是任何变量被使用但它已经被释放或任何属性变量声明和定义冲突等。

我的建议是为此问题设置 NSZombiEnabled(在您的 XCode 项目中)并再次查看崩溃日志。使用 NSZombieEnabled,您将在崩溃日志中获得更详细的信息。

于 2012-07-18T11:03:28.640 回答
0

您的第二种观点可能有问题。您似乎不会在打开调试器并启用异常的情况下运行项目,您应该首先执行此操作。如果这无助于开始将一些 NSLogs 添加到您的第二个视图中,那么您可以在崩溃前查看它的进展情况。

于 2012-07-18T12:13:38.977 回答