how to debug EXC_CRASH (SIGTRAP)

前端 未结 3 776
日久生厌
日久生厌 2021-02-06 08:06

i\'m running my app are running fine until i resume from background or with out location services, the app will crash.

the crash log shows Exception Type: EXC_CRASH (SI

3条回答
  •  梦如初夏
    2021-02-06 08:18

    You can also turn on Exception breakpoints. In XCode 4 click your project and choose the breakpoints tab. At the bottom of that tab is | + | - | search bar. Choose the + item and "Add Exeception Breakpoint". You can leave it at All or choose Objective-C. This way you will break in the debugger and be able to see what caused the exeception.

提交回复
热议问题