how to debug EXC_CRASH (SIGTRAP)

前端 未结 3 832
日久生厌
日久生厌 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:30

    The easiest way for this kind of crashes which are occuring during development is to add exception break points. You can add exception breakpoint like below

    1. Select the break points option in left menu in XCode

    1. Add the exception break point

    1. Add breakpoint for all the exceptions

    1. Run the app. In most of the cases when exception occurs XCode will stop the execution and show you the line which caused the exception.

提交回复
热议问题