帮助!仪器无法启动
Instruments 无法在我的 iPad 和 iPhone 上启动。两者都已正确配置,我可以毫无问题地从 xcode 调试它们上的代码,但 Instruments 无法启动。
我得到的只是一声嘟嘟声。我查看了 Mac 控制台日志,看到了其中几个:
8/18/10 5:46:27 PM Instruments[1406] -[NSCFArray length]: unrecognized selector sent to instance 0x11bfd93e0
我尝试重新启动 Mac,关闭iPad、拔掉 iPad 电源、从管理器中删除 iPad。我尝试删除 Instruments .plist 文件。
我已经尝试过 USB 端口和不同的电缆。没有运气让仪器运行。
我可以从设备上的 Xcode 运行该应用程序,但不能从 Instruments 运行。
我在两台不同的 Mac 上尝试过此操作,但遇到了同样的问题。我尝试将 Instruments 连接到我的 iPhone,但遇到了同样的问题,所以我认为不是设备的问题。我真的不想去买一台新 iPad 只是为了发现它不能用。
我可以在模拟器上运行 Instruments,但不能在设备上运行。 Xcode 可以很好地构建和运行该应用程序,因此该应用程序没有任何根本性的错误。
显示“选择目标”的“仪器”下拉列表显示了我的 iPad,但不像模拟器那样显示了应用程序。我尝试将 Instruments 附加到应用程序的运行版本,并且附加菜单显示该应用程序,但它呈灰色。
我升级到最新的 Xcode,并确保我的 iPad 运行的是最新版本,但问题仍然存在。我正在运行 Xcode 3.2.3 (1688) 和 Instruments 2.7 (2529)。
如果我直接启动 Instruments(不是从 Xcode),我会收到一个错误对话框,内容为“设备连接失败”以及未知的选择器消息,并且我在 Instruments 中看到黄色横幅,上面写着:“目标运行失败”。
以下是当 Instruments 连接失败时,我的 iPad 上的控制台日志:
Thu Aug 19 16:16:27 iPad lockdownd[17] <Error>: (0x481000) set_response_error: handle_start_session SessionActive
Thu Aug 19 16:16:28 iPad /usr/libexec/notification_proxy[149] <Error>: Could not receive size of message
Thu Aug 19 16:16:28 iPad /usr/libexec/notification_proxy[149] <Error>: Could not receive message
Thu Aug 19 16:16:48 iPad lockdownd[17] <Error>: (0x481000) handle_connection: Could not receive USB message #6 from Instruments. Killing connection
Thu Aug 19 16:16:48 iPad com.apple.mobile.lockdown[17] <Notice>: receive secure message timeout!
一晚一切正常,但第二天就开始出现故障。在工作和不工作之间,我没有对机器或设备做过任何事情。
我在这里变得非常绝望。我已在 Apple Dev 论坛上发帖,但尚未收到任何回复。
谁能帮助我吗?有什么建议吗?
Instruments is failing to start on my iPad and iPhone. Both are correctly provisioned and I can debug code on them from xcode with no problems, but Instruments fails to start.
All I get is a beep. I looked in the Mac Console logs and I see several of these:
8/18/10 5:46:27 PM Instruments[1406] -[NSCFArray length]: unrecognized selector sent to instance 0x11bfd93e0
I tried reboot the Mac, shutting down the iPad, unplugging the iPad, removing the iPad from Organizer. I've tried deleting the Instruments .plist file.
I've tried both USB ports and different cables. No luck in getting Instruments to run.
I can run the app just fine from Xcode on the device, just not Instruments.
I have tried this on two different Macs, and I have the same problem. I tried connecting Instruments to my iPhone and I get the same problem, so I don't think it's the device. I really don't want to go buy a new iPad just to find out that it doesn't work.
I am able to run Instruments on the simulator, but not the device. Xcode can build and run the app fine, so there isn't anything fundamentally wrong with the app.
The Instruments drop down that reads "Choose Target" shows my iPad, but not the app like the simulator does. I tried attaching Instruments to an running version of the app, and the attach menu shows the app, but it's grayed out.
I upgrade to the last Xcode and made sure my iPad was running the lastest and the problem persists. I am running Xcode 3.2.3 (1688) and Instruments 2.7 (2529).
If I start Instruments directly (not from Xcode), I get a error dialog what says "Device Connection Failed" along with the unknown selector message and I see yellow banners in Instruments that read: "Target failed to run".
Here is the console log from my iPad when Instruments fails to connect:
Thu Aug 19 16:16:27 iPad lockdownd[17] <Error>: (0x481000) set_response_error: handle_start_session SessionActive
Thu Aug 19 16:16:28 iPad /usr/libexec/notification_proxy[149] <Error>: Could not receive size of message
Thu Aug 19 16:16:28 iPad /usr/libexec/notification_proxy[149] <Error>: Could not receive message
Thu Aug 19 16:16:48 iPad lockdownd[17] <Error>: (0x481000) handle_connection: Could not receive USB message #6 from Instruments. Killing connection
Thu Aug 19 16:16:48 iPad com.apple.mobile.lockdown[17] <Notice>: receive secure message timeout!
Everything worked fine one night and then the next day it starts failing. I've done nothing to the machine or device between working and not working.
I'm getting very desperate here. I've posted on the Apple Dev forums, but haven't gotten any responses.
Can anyone help me? Any advice?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我有同样的问题!我只能在 iPhone 上使用 Instruments,而不能在 iPad 或 iPad2 上使用!
每当我使用 Xcode 4 启动仪器时,它只会发出蜂鸣声,并且记录按钮将被禁用。
我解决了这个问题,方法是在 XCode 中转到“目标”>“编辑方案”>“配置文件”yourAppName”,并将构建配置从发布更改为调试。
然后尝试再次进行配置文件产品>配置文件
如果您再次听到蜂鸣声..
您将看到记录按钮旁边显示“选择目标”,打开下拉列表>选择目标>; “yourAppName”然后创下纪录。
这为我解决了这个问题,终于能够再次运行仪器了!
我知道这篇文章很旧,但我希望它对某人有所帮助。
I had the same issue! I could only use Instruments on my iPhone but not on iPad or iPad2!
Whenever I started instruments with Xcode 4 it would just beep and the record button would be disabled..
I solved this issue by in XCode going to >Targets>Edit Scheme>Profile "yourAppName" and changing the Build Configuration from Release to Debug.
Then try to profile again Product>Profile
If you get the beep again..
You will see that it says "CHOOSE TARGET" next to the record button open the drop down >Choose Target> "yourAppName" then hit record.
This solved it for me and was finally able to run instruments again!
I know this post is old but i hope it helps someone.
如果有人遇到“设备连接失败”问题,请确保您没有打开不支持较新设备/iOS 6 的旧版本 Instruments(可能是从您的扩展坞)。这是确保以下问题的第一步:将为您的设备启动仪器。
要解决这个问题,请转到 XCode >打开开发者工具> Instruments,它将打开 XCode v4.6 安装中包含的最新版本的 Instruments。
确保删除所有旧的对接版本的仪器并重新对接新版本。
If anyone is having problems with "Device Connection Failed," make sure you aren't opening an older version of Instruments (maybe from your dock) that doesn't support the newer devices/iOS 6. This is a first step in ensuring that Instruments will start for your device.
To solve this, go to XCode > Open Developer Tools > Instruments and it will open the newest version of Instruments that's included with your XCode v4.6 install.
Make sure you remove any old docked versions of Instruments and redock the new version.
通过将 iPad 和 iPhone 完全恢复出厂设置解决了这个问题。设备上出现了一些问题。
如果这发生在你身上,现在你知道了。 :-)
This problem was solved by doing a full factory reset of the iPad and the iPhone. Something got borked on the devices.
If this happens to you, now you know. :-)