Xcode运行报错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