我正在寻找关于下面消息的更多信息。Xcode 9似乎已经挂了几分钟了…
我如何告诉Xcode 9快速识别我以前使用的设备更新到iOS 11?
.Alex 's iPhone正在忙:为.Alex 's iPhone准备调试器支持 当. alex的iPhone完成时,Xcode将继续。
我正在寻找关于下面消息的更多信息。Xcode 9似乎已经挂了几分钟了…
我如何告诉Xcode 9快速识别我以前使用的设备更新到iOS 11?
.Alex 's iPhone正在忙:为.Alex 's iPhone准备调试器支持 当. alex的iPhone完成时,Xcode将继续。
当前回答
对我来说,iTunes开着,所以
1 -打开iTunes
2 -访问你的手机
3 -点击断开您的电话
现在设备已经在XCode中准备好了
希望能有所帮助....
其他回答
下面的解决方案对我有效,请遵循以下步骤来解决您的问题:
第一步:取消运行
步骤2:打开窗口菜单,选择设备和模拟器
第三步:解锁iPhone
第四步:拆下iPhone USB线,重新连接系统
第五步:当你连接时配对iPhone,然后你会被要求信任或不允许,请点击你的iPhone上的Truct并输入你的密码(Pin Code)
注意:我执行了以上所有的步骤,它们对我都有效。我的设备调试器的问题消失了。
下面是设备和模拟器菜单的截图
因为一根电缆,我也遇到过同样的问题。我把我的第三方USB/照明电缆换成了原来的苹果电缆,它工作了。
如果你用的是测试版软件,并且你更新了操作系统,请确保你也获得了最新的Xcode测试版。这为我解决了问题。
我的设置
macOS 10.14.6 iOS 13.2.3 Xcode 11.2
在2019-11-24之前尝试了所有的“快速跑”技巧,但都没有成功。 等待似乎是不可避免的,但对我来说却异常漫长:
新升级的iOS版本。
然后我在reddit上找到了这条最有意义的评论:
This is required when you connect a device with an iOS version that the respective computer's Xcode didn't see before. It saves them in /Users/username/Library/Developer/Xcode/iOS DeviceSupport and it does take a while. Don't restart Xcode as it will not help you, just wait for it to finish. It takes quite some time because these debugger support files occupy a lot of space (29 GB for me), though you can safely delete any version from there, and if you connect a device with that version again, it will re-save it from scratch.
因此,如果你刚刚升级了iOS,那么“从头开始”的部分可能需要比平时更长的时间,这也取决于你的网络状况。就我而言,这绝对比其他人所说的“10-15分钟”要长得多。我用小时来计算。
很多技巧似乎都起作用了,但他们忽略了这样一个事实:当你尝试一些东西时,Xcode会在后台继续进行设置,并且很可能在你进行重启/重启循环时恢复它的工作。
这让我注意到我的Xcode版本只比iOS版本晚了一步。升级Xcode后,它开始工作了。
但是它花了更长的时间,因为我按照提示删除了iOS DeviceSupport文件夹!
以下是我的建议:
Check your Xcode version down to the minor version to make sure it should actually support the iOS version. Check your Mac's free disk space to make room for newly generated device support content under ~/Library/Developer/Xcode/iOS DeviceSupport as this tip suggested. Check if you have connected your device to a fast-enough USB port, as this tip suggests. Wait till Xcode finishes "preparing for debugging". If it doesn't finish in a few seconds or minutes, keep waiting. DO NOT remove any folder as some tips may suggest. Removal would simply make you wait longer!
** 解决方案:关机,拔下电源线,然后再插上。 原因:如果你没有开发apple watch应用程序,你可以尝试这个解决方案,因为Xcode正在寻找apple watch开发人员sdk。**
我以为这可能和苹果手表有关,所以我关掉了手表,然后重新启动手机,关闭所有连接。通过这种方式,我可以毫无问题地连接我的手机。但几天前,为了解决这个问题,我拼命地把手机关机又开机。问题并没有解决。与其检查设备,我认为有必要关注问题是什么。苹果官方不得不对此做出解释。