使用仪器 - 使用设备泄漏 [英] use instruments - leaks with a device

查看:26
本文介绍了使用仪器 - 使用设备泄漏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始在 iPhone 3G 上使用 Instruments-Leaks.当我尝试在 iPhone 上使用 Instruments 运行该应用程序时,我获得了

I'm starting to use Instruments-Leaks with an iPhone 3G. When I try to run the app with Instruments on the iPhone I obtain

Target failed to run: Remote exception encountered: 'Failed to get task for pid 280'

想法?

我唯一一次成功地使用仪器运行该应用程序时,它运行得很慢,我无法对其进行测试.在搜索泄漏的设备上运行该应用程序的步骤是什么?

The only time I succeed in running the app with instruments it run very slow, I couldn't test it. What are the steps to run the app on the device searching for leaks?

推荐答案

我的解决方案是确保我的 Profile 方案使用调试"而不是发布"构建配置.

The solution for me was to make sure that my Profile scheme was using the "debug" and not "release" build configuration.

在 Xcode 4 中,从顶部菜单中选择 Product/Edit Scheme然后单击左侧的个人资料"按钮.在信息"窗格中,您将看到构建配置的设置-将其设置为调试"

In Xcode 4 select Product/Edit Scheme from the top menu then click on the "profile" button on the left. On the "info" pane you will see a setting for Build Configuration- set that to "debug"

这篇关于使用仪器 - 使用设备泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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