在设备上运行时,Xcode Instruments无法拍摄泄漏快照 [英] Xcode Instruments unable to take snapshots of leaks when running on device

查看:134
本文介绍了在设备上运行时,Xcode Instruments无法拍摄泄漏快照的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,当在设备上运行应用程序时,我无法使用Instruments测试泄漏。仪器将尝试拍摄快照,但状态将冻结在分析过程中。起初我以为这只是花时间,但我等了20多分钟,没有运气。它在模拟器上仍然可以正常工作。

Recently I have not been able to test for leaks with Instruments when running apps on a device. Instruments will attempt to take a snapshot but the status will freeze at "Analyzing Process". At first I thought it was just taking it's time but I have waited over 20 minutes for it and had no luck. It does still work fine on the simulator though.

到目前为止,我尝试过:
- 使用不同ios版本的其他设备
- 重启所有设备
- 将Xcode更新到最新版本
- 运行多个不同的应用程序
- 关闭自动快照并手动尝试

So far I have tried: - Using other devices with different ios versions - Restarting all devices - Updating Xcode to latest version - Running a number of different apps - Turning automatic snapshots off and trying manually

不幸的是如果可能的话,除了重新安装仪器之外我没有任何不同之处。

Unfortunately none of the above made any difference and I'm running out of ideas aside from reinstalling Instruments if possible.

有没有人知道可能导致这种情况的原因?

Does anyone have any idea of what could be causing this?

推荐答案

我也遇到了同样的问题,我通过添加项目的开发者档案来修复它。

I also have the same issue and I have fixed it by adding a Developer Profile of my project.

您必须在Organizer中添加项目的开发者档案,并将Build Setting - > Code Signing设置为Developer Profile。之后,您可以看到仪器中的泄漏。

You have to add a Developer Profile of your project in Organizer and set Build Setting -> Code Signing to Developer Profile. After that you can see the Leaks in Instrument.

这篇关于在设备上运行时,Xcode Instruments无法拍摄泄漏快照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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