应用程序仅在Xcode仪器中崩溃 [英] App crashes only in xcode instruments

查看:52
本文介绍了应用程序仅在Xcode仪器中崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题,我开发了一个应用程序,我从Xcode分析了该应用程序,即Xcode> Product> Analyze,然后修复了我遇到的所有内存泄漏问题.我在ipad模拟器中运行了该应用程序,它运行良好,没有崩溃,没有在iPad设备上运行;没有崩溃,没有任何错误.

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 ?

推荐答案

如果您有任何编译条件,例如:#ifdef DEBUG ...,则要在调试和发布之间打开/关闭功能,这可能会导致问题,因为Instruments使用Release配置常规的Simulator运行使用Debug.

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.

这篇关于应用程序仅在Xcode仪器中崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆