仪器无法在带有设备的XCode 4上运行 [英] Instruments does not work on XCode 4 with device

查看:65
本文介绍了仪器无法在带有设备的XCode 4上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直到最近,各种乐器都运转良好.我不知道该怎么做才能使它发疯,但是现在它不会连接到我尝试对其进行分析的任何设备上;根本没有设备.我已经尝试过iPhone,iPad和2个iPod touch.没运气!我正在使用XCode 4.

Until very recently, instruments worked fine. I don't know what I did to make it mad, but now it won't attach to any device that I try to Profile with; no device at all. I've tried an iPhone, iPad, and 2 iPod touches; no luck! I'm using XCode 4.

这是事件的顺序:

  1. 连接设备后,单击产品->个人资料.
  2. 应用程序编译到设备上.
  3. 仪器启动,但听到错误声音
  4. 录制"按钮显示为灰色.
  5. 选择目标不允许我附加或选择目标(空列表).

背景要点:

  1. 配置文件在项目的Scheme中设置为Debug build.所有静态库也是如此.
  2. 我能够在设备上运行Core Animation工具,但是只有在启动时,我才与Xcode分开启动Instruments.在这种情况下,我只能附加到现有的可执行文件.我不能使用选择目标"(列表为空).
  3. 我尝试将其中一台设备恢复为出厂设置...仍然不起作用.
  4. 在设备的控制台上,我看到以下消息:

  1. Profile is set to Debug build within the Scheme of the project. This is true for all static libs as well.
  2. I AM able to run the Core Animation instrumentation on the device, but only when I launch I launch Instruments separately from Xcode. In this scenario, i can only attach to an existing executable; I can't use "Choose Target" (the list is empty).
  3. I tried restoring one of the devices to factory settings...still didn't work.
  4. Looking at the Console of the device, i see these messages:

unknown lockdownd[17] <Error>: 001d5000 handle_connection: Could not receive USB message #16 from Instruments. Killing connection
unknown com.apple.mobile.lockdown[17] <Notice>: Could not receive size of message

我们将不胜感激任何帮助

Any help would be most appreciated

推荐答案

在苹果开发人员论坛上有关于此问题的讨论:

There was a discussion on the apple developer forums about this issue:

仪器在带有设备的Xcode 4上不起作用

看来,不同的Apple产品将更改/更新MobileDevice框架.其中一些更新破坏了Instruments的集成.

It appears that different Apple products will change/update the MobileDevice framework. Some of these updates break the Instruments integration.

要在自己的计算机上修复此问题,我安装了iTunes 10.5 beta v6.启动XCode,然后我就可以在设备上重新进行业务检测了.

To fix this on my own machine, I installed the iTunes 10.5 beta v6. Fire up XCode, and I'm back in business Instrumenting on my device.

这篇关于仪器无法在带有设备的XCode 4上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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