无法使用设备上的 Instruments 启动 iOS 应用程序

发布于 2024-11-15 16:17:50 字数 303 浏览 2 评论 0原文

应用程序安装,仪器启动,但仪器中的下拉菜单显示选择目标,并且应用程序从未启动。控制台显示

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

指尖微凉心微凉 2024-11-22 16:17:50

我也有同样的问题。我没有解决这个问题,但一个简单的解决方法是自己启动应用程序,然后通过“仪器”窗口中“目标”菜单中的“附加到进程...”命令附加到它。

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.

梦萦几度 2024-11-22 16:17:50

我遇到了同样的问题,我的解决方案是从 XCODE 启动仪器。

Xcode 11:

  1. 在模拟器上运行应用程序

  2. 打开调试导航 (Command + 7)

  3. 单击 cpu

  4. 单击“仪器中的配置文件”

在此处输入图像描述

Xcode 3.2.5

  1. < p>启动 XCODE

  2. 选择设备或模拟器

  3. 在顶部单击 RUN > >使用性能工具运行> LEAKS

这使我能够进行测试而不会出现该错误。
这是我在 XCODE 3.2.5 中执行的操作。如果您使用 4.x,可能会有所不同

I had the same problem, my solution was to initiate instruments from XCODE.

Xcode 11:

  1. Run the app on simulator

  2. Open Debug Navigation (Command + 7)

  3. Click on cpu

  4. Click on “Profile in Instruments”

enter image description here

Xcode 3.2.5

  1. Launch XCODE

  2. Select Device, or Simulator

  3. 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文