Finding a bug using Xcode - attempt to insert nil value

前端 未结 5 652
离开以前
离开以前 2021-02-10 15:18

I am getting a random bug in my app, which is causing it to crash. The problem I am facing is XCode doesn\'t tell me where the crash is happening only the below information. Can

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-10 15:33

    Have you turned on exception breakpoints? Click the + at the bottom left of the Breakpoint Navigator, then select Add Exception Breakpont.

    enter image description here

    You can right click the breakpoint to edit it…

    enter image description here

    This will cause the code to stop at the point where the error occurs.

提交回复
热议问题