How to find where NSInvalidArgumentException (“data parameter is nil”) get's thrown?

前端 未结 2 1707
轻奢々
轻奢々 2021-01-27 17:54

I\'m writing an iPad App and today I realized, that there\'s something wrong when there\'s no internet connection.

I get this very informative error:

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-27 18:41

    In XCode you can add the Exception-Breakpoint which will halt the application right before it crashes fataly. You should give this one a try, if it works as it should, it will pause right on the line of code, that crashes your app.

    How to add the exception-breakpoint

提交回复
热议问题