Always trigger the all exceptions break point

百般思念 提交于 2019-12-25 07:50:01

问题


I had enable a All Exceptions break point in my project.

But the UIApplicationMain() function always trigger the break point when the app launching. I think there was no exceptions here because if I click the Next Button twice, the app will launch successfully.

I have tried commenting the code in the AppDelegate, but it does't work.


回答1:


Possible solutions for it could be:

  • Added custom font can cause this issue so, apparently delete (replace) it, somewhere in project is still his reference which causes C++ exception.

So, Delete or Replace all references to those fonts, Clean the project and check.

  • Change from All Exceptions to Objective-C Exceptions in All Exceptions.

Check this answers will help more:

Xcode throws an exception in Main() in iOS 8 with 'all exceptions' breakpoint

Always stop in App delegate after enabling All exceptions break point

Try and check if it help:)



来源:https://stackoverflow.com/questions/39340355/always-trigger-the-all-exceptions-break-point

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!