App crashes only in xcode instruments

耗尽温柔 提交于 2020-02-03 11:01:07

问题


I have a strange issue, I have developed an app , I analyzed the app from Xcode i.e Xcode>Product>Analyze, then fixed any memory leaks I got. I ran the app in ipad simulator it worked fine, no crash nothing, ran it on an iPad device;no crash no errors nothing.

But when I tried to profile the app from instruments for memory leaks , during profiling there were no memory leaks, but at one stage when I load a modal view and then after Modal view dismissal the app crashes and instrument displays simulator session time out.

What could be the problem ?

回答1:


If you have any compile conditions, e.g.: #ifdef DEBUG ..., to switch on/off functionality between debug and release this could cause problems since Instruments uses the Release configuration and regular Simulator run uses Debug.



来源:https://stackoverflow.com/questions/9679641/app-crashes-only-in-xcode-instruments

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