Getting the error :pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug

浪子不回头ぞ 提交于 2019-12-04 10:16:32
cyberbemon

You might be releasing the object too many times.

Open up the debugger console by pressing Cmd+Shift+R. and then type in the following

break malloc_error_break

This will set a breakpoint at the beginning malloc_error_break, you can also try printing out what's the object at 0xa68aca0

print-object 0x1068310

Other way to do it is using NSZombieEnabled

Also worth reading this

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!