AngryHacker
AngryHacker

Reputation: 61636

How to debug iPhone app errors that occur before the first line

I have a fairly simple app. It compiles fine. Unfortunately, when I Build and Go, it fails before even the first line of code, thus making it impossible for me to even debug it.

Where do I start? I do have the stack track though.alt text

Upvotes: 7

Views: 202

Answers (2)

Adam Woś
Adam Woś

Reputation: 2473

From the stack trace, it seems your Outlet connections seem messed up in your main XIB file - you could start looking there.

Other than that, you won't be able to debug much, because there's no source code for the iPhone built-in mechanisms, which seem to be failing here (most probably because of something you did in the interface designer/XIBs).

Upvotes: 11

kennytm
kennytm

Reputation: 523484

Set a breakpoint at objc_exception_throw, then restart the application. The breakpoints should be kept after the restart, allowing you to see what's wrong.

Upvotes: 1

Related Questions