Application error at startup when exception checkpoint is active

I just started to continue developing an outdated iPad application that works and is in the store.

I noticed that the exception checkpoint in the project is not included. When I turn it on, the application crashes at startup (device and simulator), but does not give me any information in the output window and only useless information in the form of a stream (see below)

I tried to fix it.

  • disabling auto power off.
  • by editing and saving the storyboard file again .. but so far no luck.

I’m assuming something is broken in the storyboard because the "Application Delegation" method did not end up with a run ... ".

Is there a way to further track the failure? The application does not work, but the application does not work. But I would like to use an exception checkpoint.

enter image description here

+6
source share
2 answers

I had the same problem with one of my projects that I am working on. When you set an exception breakpoint, you will set a breakpoint for all kinds of exceptions (Objective-C and C ++ exceptions). If you go over and edit the Exception breakpoint and set it to "Objective-C", you may stop getting the exceptions you receive. Here are the steps for this.

  • Right-click on the exception control point. Right click on exception breakpoint.

  • Select the Exception Type drop-down list and select Objective-C enter image description here

The exception you get may be a C ++ exception, for example, NSURLSession gives a C ++ exception. You call any service when you start BTW. :) HTH :)

+10
source

Can you do a global project search for awakeFromNib , and if it exists, set a breakpoint at the beginning of this delegate method. Then continue debugging until you indicate an error. Since this function is called before application:didFinishLaunchingWithOptions: you guessed it.

+2
source

Source: https://habr.com/ru/post/979851/


All Articles