iPhone系统版本和XCode版本不兼容

887 阅读1分钟

Failed to prepare the device for development.

Recovery Suggestion: This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your Mac and device in order to correctly detect compatibility.

刚开始使用Xcode14.2的时候,能使用16.6版本系统的iPhone手机测试。但是,第二天过来上班发现版本不兼容了,报如上错误。重启手机和电脑也不管用。

这个文档说明了Xcode版本分别支持的SDK版本,但是不知道为啥我之前14.2的Xcode和iOS16.6的手机能连接上

解决办法:

  1. 这个地址下载对应手机系统版本的文件, 16.6版本在这里

  2. 将该文件解压后放到这个路径下:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

  3. 重启Xcode