Xcode运行报错Failed to prepare device for development.解决办法

如题所述

第1个回答  2022-07-18
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.

翻译:如果设备上的操作系统版本与安装的Xcode版本不兼容,则此操作可能会失败。您可能还需要重新启动mac和设备,以便正确检测兼容性。

Xcode运行项目报了这个错误,说是手机系统版本和Xcode版本不兼容,我的Xcode是13.4.1版本,我的手机系统15.4.1版本,按理来说不会出现不兼容的情况,我重启了一下手机再运行就不报错了。之后的一段时间也经常出现这个报错,都是重启一下手机就好了,所以怀疑是苹果的系统bug。
相似回答