参考文章
https://stackoverflow.com/questions/7741985/malloc-history-cannot-examine-process-xxxxxx-because-the-process-does-not-exist
http://www.jianshu.com/p/f6e6b4f21ca2
打开僵尸模式后调试,发现在真机上运行的程序是不可以用下面的代码进行查找bug的,只有模拟器的才可以
sudo malloc_history 21122 0x60008170cfd0
之后我又下载了出现问题的版本iOS的模拟器
我现在很奇怪的是一个内存问题,在iOS10上就没有问题,但是在iOS9上就必定崩溃。到目前还不知道为什么。
错误提示
*** -[UIView retain]: message sent to deallocated instance 0x130ab01f0