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的手机能连接上
解决办法: