无法使用设备上的 Instruments 启动 iOS 应用程序
应用程序安装,仪器启动,但仪器中的下拉菜单显示选择目标,并且应用程序从未启动。控制台显示
6/14/11 2:36:22 PM Instruments[1951] XRMobileDeviceException while performing application lookup on device : (null)
设备是 iOS 4.3.3,常规构建和运行有效,并且 Xcode 没有发出警告。 个人资料根本不起作用。尝试清理构建,重新启动 Mac OS 和设备。还是不行啊!
App installs, Instruments launch, but drop down in instruments says select target, and the app never launches. Console says
6/14/11 2:36:22 PM Instruments[1951] XRMobileDeviceException while performing application lookup on device : (null)
Device is iOS 4.3.3, regular build and run works and no warnings from Xcode. Profile just doesnt work. Tried cleaning the build, restarting Mac OS and the device. Still no go!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我也有同样的问题。我没有解决这个问题,但一个简单的解决方法是自己启动应用程序,然后通过“仪器”窗口中“目标”菜单中的“附加到进程...”命令附加到它。
I had the same problem. I didn't solve it, but an easy workaround is to launch the app yourself and then attach to it from the Attach to Process... command in the Target menu in the Instruments window.
我遇到了同样的问题,我的解决方案是从 XCODE 启动仪器。
Xcode 11:
在模拟器上运行应用程序
打开调试导航 (Command + 7)
单击 cpu
单击“仪器中的配置文件”
Xcode 3.2.5
选择设备或模拟器
在顶部单击 RUN > >使用性能工具运行> LEAKS
这使我能够进行测试而不会出现该错误。
这是我在 XCODE 3.2.5 中执行的操作。如果您使用 4.x,可能会有所不同
I had the same problem, my solution was to initiate instruments from XCODE.
Xcode 11:
Run the app on simulator
Open Debug Navigation (Command + 7)
Click on cpu
Click on “Profile in Instruments”
Xcode 3.2.5
Launch XCODE
Select Device, or Simulator
Up on top Click RUN > RUN WITH PERFORMANCE TOOL > LEAKS
This allowed me to test without giving me that error.
This is in XCODE 3.2.5 that I did this in .. it might be a little different if you are using 4.x