10

当我将我的 3gs(iOS 5.0.1)设备连接到 Instruments 时,我收到此错误消息

" Failed to start Instruments daemon for 'iOS' on  iPhone 3GS (v5.0.1)' (The service is invalid.)

Please reconnect the device."

每当我重新连接设备时,此消息就会出现在仪器上。我如何使用此设备进行性能测试。

谢谢。

4

4 回答 4

7

我在连接 iPod 4G 的情况下尝试运行 Instruments 时收到此错误消息。事实证明,我使用的是早期版本的 XCode (4.2) 中的过时版本的 Instruments。(当我在 Spotlight 中搜索 Instruments 时,只出现了这个版本,因为更高版本的 XCode 将它们的工具隐藏在 XCode.app 包中。)您的情况可能有所不同,但我怀疑您没有从 XCode 中的 Profile 命令运行 Instruments IDE。

要验证这是否是问题所在,请检查 Instruments 的版本(在“关于 Instruments”中)并确认它与您的 XCode IDE 版本相同。(对我来说,它们分别是 4.2 和 4.5。)如果它们不匹配,请右键单击 Applications 文件夹中的 XCode 应用程序并选择“显示包内容”。在 Contents/Applications 中,您应该找到正确版本的 Instruments。

于 2012-10-02T16:42:26.343 回答
7

我不知道是什么原因造成的——但我确实找到了一种在两种设备上都有效的解决方案,导致仪器弹出此消息——使它们无法使用。我只是启动了 Xcode 的 Organizer,在 Organizer 读取了设备的数据之后——两者都可以完美地使用仪器。

于 2011-12-19T13:53:05.127 回答
4

我在尝试使用 iPhone4s 和 3GS 运行仪器时收到此错误消息。为了解决这个问题,我打开 Xcode,而不是选择选择 windows>organizer 选择设备并清除控制台和设备日志。完成上述步骤后,仪器已检测到该设备。

于 2012-10-29T05:50:37.840 回答
1

Cleaning the Console worked for me :)

I was automating a Hybrid app.

I did these:

  • Opened Xcode
  • Goto Window
  • Organizer
  • Under you device name goto Console.
  • Clear the the console.

Hope this helps some one.

于 2014-05-09T09:52:28.177 回答