I\'m developing an iPhone application. I have an EXC_BAD_ACCESS
that occurs only in the release target; when I build the debug target the exception does not occur.
In objc_msgSend
, r0
contains a pointer to the receiver of the message. Your app is crashing when it tries to load something pointed to by the receiver. The most likely explanation is that you are either messaging an object that hasn't been initialized, or an object that has already been freed, but there are other possibilities.
You also may want to have a look at "So you crashed in objc_msgSend"; it's written about the Intel OS X platform, but much of it also applies to the iPhone OS.