Xcode malloc error

前端 未结 1 1356
眼角桃花
眼角桃花 2020-12-22 11:08

I\'m getting this error in the Xcode console, sometimes it causes the simulator to exit and sometimes it is ignored. It will usually be ignore if I wait a few seconds once t

相关标签:
1条回答
  • 2020-12-22 11:39

    The Instruments-Tool provides a way to find Zombies.

    To find the Zombie which causes your app to crash, select Product > Profile in XCode 4. A new window will open where you have to choose "Zombies". Now click "Profile" in the bottom-right corner of the window. If you now send a message to a freed object, it will show you what type of object it is and which method sent the message.

    To set a breakpoint you just have to click on the line number you want your app to pause. After your app paused you can run your application step by step, so you will be able to see, which part of your code causes the crash.

    0 讨论(0)
提交回复
热议问题