1

我对 iOS App 有奇怪的行为。我的应用程序仅在未通过 XCode 连接时才会崩溃。此外,它仅在从后台到前台后才会崩溃。我刚刚浏览了崩溃日志,许多链接都建议这样做。

我现在无法找出崩溃日志的内容。

Jun  1 09:22:28 unknown SpringBoard[15] <Notice>: Posting 'com.apple.iokit.hid.displayStatus' notifyState=0

Jun  1 09:22:28 unknown SpringBoard[15] <Notice>: MultitouchHID: detection mode: 0->255

Jun  1 09:22:28 unknown UserEventAgent[12] <Warning>: DEBUG: Changing screen blanked state: 1

Jun  1 09:22:28 unknown kernel[0] <Debug>: [000070.133242]: AppleDPDisplay::setLCDStateGated:(0x81b4a000) Disabling

Jun  1 09:22:28 unknown kernel[0] <Debug>: [000000.000163]: AppleDPDisplay::terminateLink:(0x81b4a000) Waited 0 ms for display to disable

Jun  1 09:22:28 unknown kernel[0] <Debug>: [000000.000020]: AppleDPDisplay::terminateLink:(0x81b4a000) ret=0x00000000

Jun  1 09:22:28 unknown kernel[0] <Debug>: [000000.000703]: AppleDPDisplay::deviceTerminated:(0x81b4a000) device=0xb4fcd300

Jun  1 09:22:28 unknown kernel[0] <Debug>: [000000.000099]: AppleDPDisplay::setPower:(0x81b4a000) enable=0 ret=0x00000000

Jun  1 09:22:28 unknown kernel[0] <Debug>: [000000.000020]: AppleDPDisplay::setLCDStateGated:(0x81b4a000) enable=0 ret=0x00000000

Jun  1 09:22:29 unknown SpringBoard[15] <Notice>: Posting 'com.apple.iokit.hid.displayStatus' notifyState=1

Jun  1 09:22:29 unknown UserEventAgent[12] <Warning>: DEBUG: Changing screen blanked state: 0

Jun  1 09:22:29 unknown SpringBoard[15] <Notice>: MultitouchHID: detection mode: 255->0 (deferring until bootloaded)

Jun  1 09:22:29 unknown SpringBoard[15] <Notice>: MultitouchHID: device bootloaded

Jun  1 09:22:29 unknown SpringBoard[15] <Notice>: MultitouchHID: detection mode: 0->0

Jun  1 09:22:29 unknown kernel[0] <Debug>: set_crc_notification_state 0

Jun  1 09:22:29 unknown kernel[0] <Debug>: [000001.383400]: AppleDPDisplay::setLCDStateGated:(0x81b4a000) Enabling

Jun  1 09:22:29 unknown kernel[0] <Debug>: [000000.001806]: AppleDPDisplay::setPower:(0x81b4a000) setting bl deadline for 193 ms from now

Jun  1 09:22:29 unknown kernel[0] <Debug>: [000000.000027]: AppleDPDisplay::setPower:(0x81b4a000) enable=1 ret=0x00000000

Jun  1 09:22:29 unknown kernel[0] <Debug>: [000000.000018]: AppleDPDisplay::setLCDStateGated:(0x81b4a000) enable=1 ret=0x00000000

Jun  1 09:22:30 unknown kernel[0] <Debug>: [000000.052701]: AppleDPDisplay::devicePublished:(0x81b4a000) newDevice=0x8d3ee000

Jun  1 09:22:30 unknown kernel[0] <Debug>: [000000.023734]: AppleDPDisplay::trainLink:(0x81b4a000) Waited 23 ms for link training

Jun  1 09:22:30 unknown kernel[0] <Debug>: [000000.000174]: AppleDPDisplay::initiateLink:(0x81b4a000) Waited 78 ms for display to enable

Jun  1 09:22:30 unknown kernel[0] <Debug>: [000000.000020]: AppleDPDisplay::initiateLink:(0x81b4a000) _dpDevice=0x8d3ee000 ret=0x00000000

Jun  1 09:22:37 unknown ReportCrash[9152] <Notice>: Formulating crash report for process XYZ[9143]

Jun  1 09:22:37 unknown ReportCrash[9152] <Notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/XYZ_2012-06-01-092237_The-new-iPad.plist using uid: 
0 gid: 0, synthetic_euid: 501 egid: 0

Jun  1 09:22:37 unknown com.apple.launchd[1] <Warning>: 
(UIKitApplication:com.company.test[0xe951]) Job appears to have crashed: Segmentation fault: 11

Jun  1 09:22:37 unknown SpringBoard[15] <Warning>: Application 'XYZ' exited abnormally with signal 11: Segmentation fault: 11

任何人都可以在这里阅读并提示我一些解决方案或解决方法吗?

4

1 回答 1

0

尝试添加一个 NSZombieEnabled。为此:

1) 按 cmd + Shift + ,

2)在左侧面板中单击“运行{应用程序名称}”

3)在右边选择诊断“

4)在“启用僵尸对象”处设置复选框

5)重试崩溃,然后你可以用XCode调试错误

于 2012-06-28T04:41:13.933 回答