无法使用Xcode 7,7.0.1或7.1 beta在iOS 9.0.1设备上分析应用程序 [英] Unable to profile app on device with iOS 9.0.1 using Xcode 7, 7.0.1 or 7.1 beta

查看:151
本文介绍了无法使用Xcode 7,7.0.1或7.1 beta在iOS 9.0.1设备上分析应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图使用最新版本的Xcode 7.0.1(7月28日发布的7A1001),以及之前版本的Xcode 7(7A218)以及Xcode,对我的设备(通过Instruments)进行配置文件失败。 7.1 Beta 2(7B75)。

I have been trying unsuccessfully to profile my device (via Instruments) using the latest version of Xcode 7.0.1 (7A1001 released 9/28), as well as the previous version of Xcode 7 (7A218), as well as Xcode 7.1 Beta 2 (7B75).

我的设备是安装了iOS 9.0.1的iPhone 6+ - iOS9的最新GM版本。我可以毫无问题地在这个设备上运行/调试应用程序。

My device is an iPhone 6+ with iOS 9.0.1 installed - the latest GM release of iOS9. I am able to run / debug applications on this device without issues.

在下面的屏幕截图中,您可以看到我的设备在所有屏幕截图中都被禁用(灰显)版本。我能够分析运行iOS 8.4.1的其他设备,没有任何问题。

In the screenshots below you can see that my device is disabled (greyed out) in all screenshots in all versions. I am able to profile other devices running iOS 8.4.1 without any issues.

当前版本的Xcode是否不支持针对iOS 9.0.1的分析,或者是否存在某种配置设置或已知的解决方法?

Does the current version of Xcode not support profiling against iOS 9.0.1 or is there some kind of configuration setting or known work around for this?

Xcode 7.0.1:

Xcode 7.0.1:

Xcode 7.0:

Xcode 7.0:

Xcode 7.1 beta 2:

Xcode 7.1 beta 2:

推荐答案

TL; DR - 执行设备的完全重启;重启Xcode&仪器;如果系统提示启用设备进行开发,请选择打开Xcode。

TL;DR - Perform a complete reboot of your device; restart Xcode & instruments; select "Open Xcode" if prompted to enable the device for development.

2016年3月31日更新:我没有遇到任何问题使用最新版本的Xcode(7.2.x,7.3),似乎这里的稳定性得到了改善。

Update 3/31/2016: I haven't encountered any issues with the latest version(s) of Xcode (7.2.x, 7.3), so it seems that the stability here has been improved.

我相信我可能终于让它正常工作了。详细步骤:

I believe I may have finally gotten this to work properly. Detailed steps:


  1. 从Mac和Mac上拔下设备。完全关闭设备电源(按住电源按钮几秒钟;滑动关闭电源)。

  2. 关闭Xcode和Instruments。

  3. 重启设备&一旦它启动完全重新连接到你的Mac。

  4. 重新启动Xcode。在这里,我的设备显示为已禁用,Xcode表示该设备无法使用。

  5. 打开您的项目;清理(​​Shift + Command + K),构建(命令+ B),配置文件(命令+ I)。

  6. 启动仪器后,我注意到设备已启用。选择后,会显示一条消息,标题为启用此设备进行开发?和消息这将打开Xcode并启用此设备进行开发。 (请注意,即使我已经使用该设备进行开发,我第一次经历此过程时才发生这种情况 - 而有些用户还报告说他们没有使用此对话框。)

  1. Unplug the device from your Mac & power down the device completely (hold the power button for several seconds; slide to power off).
  2. Close Xcode and Instruments.
  3. Restart the device & once it has booted completely re-connect it to your Mac.
  4. Re-launch Xcode. Here, my device showed as disabled and Xcode indicated that the device was not available for use.
  5. Open your project; clean (Shift+Command+K), Build (Command+B), Profile (Command+I).
  6. After Instruments launched I noticed that the device was enabled. Upon selecting it, a message was displayed with the title "Enable this device for development?" and message "This will open Xcode and enable this device for development." (Note that this only happened to me the first time I went through this process even though I had already been using the device for development - whereas some users have also reported that they are not presented with this dialogue.)


  1. 点击打开Xcode。在这里Xcode没有提示我任何事情,也没有显示任何内容 - 没有其他消息表明已经完成了任何事情,或者该设备是否可用于开发。打开设备窗口,设备似乎可用。 (我没有为后续事件提供此选项。)

  2. 现在我可以在Instruments中选择设备并对其进行配置。

作为旁注,我还能再次从设备窗口删除已安装的应用程序(我意识到这是不可能的以前做过。

As a side note, I was also again able to delete installed apps from the Devices window (I realized that this was not possible to do previously).

我不确定我的设备是如何处于这种状态但是我会留意这是否会继续发生。

I'm unsure how my device ended up in this state however I will be on the lookout to see if this continues to occur.

请注意,这是使用 Xcode 7.0.1 完成的。

Please note that this was done using Xcode 7.0.1.

更新:执行这些步骤后,我的设备似乎无法用于分析一段时间 - 我必须重新启动设备才能使用它可用于分析。不知道是什么触发了这种行为,但我会为此提交一个Radar。

Update: My device seems to lapse back into not being able to be used for profiling some time after performing these steps - I've had to reboot my device again in order for it to be available for profiling. Not sure what is triggering this behavior but I will file a Radar for this.

这篇关于无法使用Xcode 7,7.0.1或7.1 beta在iOS 9.0.1设备上分析应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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