Xcode starts at breakpoint "Thread 1: Breakpoint 1.2"

Every time I start Xcode it starts from a breakpoint in main.m at

return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));

      

There is no breakpoint here.

+3


source to share


3 answers


The problem is that you have a global exception breakpoint. For some reason, an exception is thrown. But not every exception is fatal; this object is localized by Cocoa. So, you have two options:

  • Kill the Exception breakpoint and resume.

  • Temporarily disable breakpoint Exceptions (in the breakpoint navigator).



It's a little annoying that this is happening, but it is. There are many situations where Cocoa throws and throws an inner exception. (For example, AVFoundation does this a lot.) This usually goes unnoticed, but when you use the global exception breakpoint, it pauses whenever it does.

+3


source


maybe you can try this:

Make sure that all the fonts that you specified in your Info.plist under Fonts provided by this application are indeed in your application.



The font will result in C ++ breakPoint 1.2

+3


source


You can also edit the Exception breakpoint and select only the Objective-C exception. In my case, it helped me.

Screenshot of the breakpoint navigator

+1


source







All Articles