Find the file and the line "found nil"

I upgraded to Xcode 8.3.3 and upgraded my OS, bunch of containers, etc. Now that I crashed on unexpectedly found nil

it takes me to the stack trace and it stopped at "exc_breakpoint" (see screenshot). I have no breakpoints.

I cannot effectively eliminate these "zero" errors because I don't know where they are happening in my project (I can do it slowly using backtrace and trying to sort the messages, but this is way slower than if it just landed on correct line as before).

Do I have some setting accidentally turned on? This is mistake? How can I get Xcode to go straight to the downstream crash line?

Thank!

enter image description here

+3


source to share


1 answer


Yes, I also ran into these problems in my project. I just used this by setting a breakpoint in my code and I run manually line by line. Finally, it will show the line for nil.

If I run into a crash issue when any action button is pressed , I will set a breakpoint and run it line by line.

else if I am facing page load crash issue . I have set a breakpoint at viewdidload

andviewdidappear

else I'll set a breakpoint in the functions .



or try using an exception breakpoint

enter image description here

enter image description here

With this above method I will resolve the crash issue in my project.

+1


source







All Articles