我的应用程序在模拟器中工作得很好,但在设备上崩溃。我如何知道是什么让设备崩溃?应用程序在设备上启动时崩溃,但在模拟器上没问题
崩溃日志:
OS Version: iPhone OS 5.1 (9B176)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x373a332c __pthread_kill + 8
1 libsystem_c.dylib 0x339b8208 pthread_kill + 48
2 libsystem_c.dylib 0x339b1298 abort + 88
3 GraphicsServices 0x30bfd87c GSRegisterPurpleNamedPort + 188
4 GraphicsServices 0x30bfe2bc GSEventInitialize + 64
5 UIKit 0x36e6cc5a UIApplicationMain + 534
6 AppleIns HD 0x00078bd6 0x77000 + 7126
7 AppleIns HD 0x00078b80 0x77000 + 7040
您是否能够在代码崩溃的地方找到确切的代码行(例如brakpoints)? – 2012-04-01 10:19:31
您是否尝试重新启动设备?退房:http://stackoverflow.com/questions/3589631/gsregisterpurplenamedport-sigabrt-in-uiapplicationmain-before-app-delegate-gets – Stavash 2012-04-01 10:20:55
你在使用Xcode在设备上进行调试吗?如果是的话,它应该指出你崩溃的地方...... – Saphrosit 2012-04-01 10:26:37