How to debug EXC_BAD_ACCESS that occurs only on release target for an iPhone app?

后端 未结 3 1957
忘了有多久
忘了有多久 2021-02-07 12:45

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.

3条回答
  •  时光说笑
    2021-02-07 13:08

    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.

提交回复
热议问题