Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When only "All Exceptions" breakpoint is set, Xcode 7 always stop on app start

It's been bothering me since Xcode 6, that whenever I set 'All Exceptions' without any other breakpoints, Xcode would stop at start when I init a UILabel view wrapper in RootVC.

If I try to remove the causing line, another "random" line would trigger it again. Thoughts on what caused the exceptionenter image description here?

Screenshot

Screenshot

like image 407
hyouuu Avatar asked Sep 20 '15 10:09

hyouuu


1 Answers

This breakpoint comes from an exception that was thrown by TFileDescriptorContext. All Exceptions halts also on C++ exceptions.

It gives you a good indication where the problem comes from. Take a look if all fonts that are listed in Info.plist are part of your application bundle.

"Normally" you are not interested in C++ exceptions when you are in Objective-C, so feel free to ignore them.

Edit: This problem has been discussed several times here on SO. Updating when I can find the posts again which might give you even a deeper insight.

like image 185
HelloWorld Avatar answered Nov 05 '22 22:11

HelloWorld