2012-07-18 45 views
-2

我正在做與標籤欄應用程序與四個選項卡,而切換兩個視圖的標籤中我得到的問題告訴我爲什麼發生這種情況,並幫助我解決這個問題。 這裏是Log while crashing應用程序。iPhone應用程序崩潰很少能夠告訴我跟隨Log的崩潰原因嗎?

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 

回答

0

根據查看您的崩潰日誌,您的應用程序即「MyApp」由於分段錯誤而崩潰。它可能有不同的原因,可能的原因是任何變量正在使用,但它已經發布或任何屬性變量聲明和定義衝突等。

我的建議是爲此問題設置NSZombiEnabled(在您的XCode項目中)並查看崩潰再次記錄。使用NSZombieEnabled,您將在崩潰日誌中獲得更多詳細信息。

0

您的第二個視圖可能有問題。它不會出現,你正在運行你的項目與啓用調試器和例外,你應該首先做。如果這沒有幫助開始添加一些NSLogs到你的第二個視圖,所以你可以看到它在崩潰前有多遠。