问题:Xcode show “Failed to prepare device for development.”

问题描述:
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.

image.png

解决办法:
1.检查xcode支持的SDK版本是不是与手机当前的版本匹配,如果手机版本过高,则xcode需要引入手机版本对应的SDK调试包
2.如果确定xcode已导入iPhone版本的调试包,仍不能解决问题,尝试:重启手机,再次运行,如仍失败重启Xcode,再次运行,如仍失败重启电脑,再次运行。

你可能感兴趣的:(问题:Xcode show “Failed to prepare device for development.”)