一起养成写作习惯!这是我参与「掘金日新计划 · 4 月更文挑战」的第2天,点击查看活动详情。
现象
手机系统版本iOS 15.4.1 xcode 版本 Version 13.2.1 (13C100)
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.
然后就不能装APP啦
解决
- Check /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ for directory name 15.4 (your iOS version).
- If the directory is missing download support files for 15.4 (your iOS version) from github.com/filsv/iPhon… and place it in the above path.
- Restart Xcode.
检查/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ 这里面是不是有15.4 的文件夹, 我的没有!!!
如果没有的就 github.com/filsv/iPhon… 下载15.4 然后放到里面
重启Xcode