Why does the release build of my iPhone app crash on the device on the first run after installation?

Posted by Chris Cooper on Stack Overflow See other posts from Stack Overflow or by Chris Cooper
Published on 2010-05-10T22:19:14Z Indexed on 2010/05/10 22:24 UTC
Read the original article Hit count: 315

Filed under:
|
|

I have an iPhone app that's been in development for about 2 weeks. We recently tried the "release" version of the build on a device, and to our great unhappiness, it crashes in one of the views with an "EXC_BAD_ACCESS".

This crash only occurs on devices, and only in the "release" build. Not only that, but it only happens the first time the app is launched! It is also 100% reproducible.

We have removed the small block of code that deals with data persistence, and have tried re-openning Xcode, cleaning the project, deleting and reinstalling the app, etc., as some other questions suggest.

Do you have any advice for a) what might be causing this problem, and b) how to go about debugging if it only happens in "release"?

Thanks

© Stack Overflow or respective owner

Related posts about iphone

Related posts about debugging