iPhone不可用.请重新连接设备. /iOS 14.2-Xcode 12.1 [英] iPhone is not available. Please reconnect the device. / iOS 14.2 - Xcode 12.1

查看:738
本文介绍了iPhone不可用.请重新连接设备. /iOS 14.2-Xcode 12.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将iPhone更新为iOS 14.2.

I just updated my iPhone to iOS 14.2.

当我想从Xcode在设备上启动应用程序时,现在看到的内容如下:

When I want to launch an app on the device from Xcode, I now keep seeing this:

我还刚刚将Xcode更新到版本12.1,希望它可以解决问题,但是没有什么区别,我一直收到相同的消息.

I also just updated Xcode to Version 12.1, hoping it would solve the problem, but it doesn't make any difference, I keep getting the same message.

很明显,我尝试断开并重新连接设备,但无济于事.

Obviously I tried disconnecting and reconnecting the device, but to no avail.

我还删除了〜/Library/Developer/Xcode/DerivedData/下的所有数据,但同样没有效果.

I also removed all the data under ~/Library/Developer/Xcode/DerivedData/, but again with no effect.

似乎其他人以前也遇到过这个问题,但是我没有找到任何可行的解决方案.

It seems like some other people have had this issue before, but I didn't find any working solution for me.

我希望最近有类似经历的人能为我指出正确的方向,以找到解决此问题的正确方法.

I hope someone with a recent similar experience can point me in the right direction for a proper way to solve this problem.

推荐答案

  • 转到此Github存储库 iOS 14.2设备支持文件并下载14.2.zip直接将文件解压缩后

    • Go to this Github repo iOS 14.2 Device Support File and download 14.2.zip file directly and after unzip it

      只需按路径复制并粘贴解压缩的文件夹即可:

      And just copy and paste unzipped folder by path:

      Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
      

    • 重新启动Xcode

    • Restart the Xcode

      仅此而已.您可以构建并继续您的项目:)

      That's all. You can build and go on your project :)

      如果您需要直观的解决方案,请查看以下答案: https://stackoverflow.com/a/64854525/14531220

      If you need visually solution check out this answer: https://stackoverflow.com/a/64854525/14531220

      为什么要执行这些步骤? :因为Xcode 12.1不包含对14.2的支持,所以我们为14.2实现了其设备支持文件.

      Why we have done these steps ? : Because Xcode 12.1 doesn’t include support for 14.2 so we implemented its device support files for 14.2.

      https://developer.apple.com/documentation/xcode-release-notes/xcode-12_1-release-notes

      这篇关于iPhone不可用.请重新连接设备. /iOS 14.2-Xcode 12.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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