[Error]连接iPhone调试时提示Failed to prepare the device for development.

环境:

iPhone 7 Plus

iOS 15.8

Xcode14.2

问题:

连接iPhone设备运行时,设备旁提示如下文案。

Failed to prepare the device for development.

这时强行点击运行按钮,会弹窗提示如下文案。

The run destination ZDMiPhone is not valid for Running the scheme 'ATITEAS'.

Failed to prepare the 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.

原因:

本地Xcode的设备支持中不支持iOS15.8

可以按照下面方式去支持列表查询

Command+Shift+G进入/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport目录

解决:

去下方地址下载对应的设备支持
https://github.com/filsv/iOSDeviceSupport

没对应版本时,直接下载一个低于当前的版本,然后重命名为15.8就可以了。一般临近版本就可以,但15.8我试了一下要拿15.5来解决问题。

像我这种,网上没15.8,本地电脑中有15.0-15.7。就直接按照15.7-15.0的顺序,挨个复制一份然后改成15.8去试,这样就能解决问题。

添加版本支持后,不要忘了,要完全退出Xcode然后重启。

相关推荐
茶底世界之下17 小时前
蓝调鱼市的一盏暖灯:用 Awaking 把冷海与灯光分开
ios·app·产品
茶底世界之下2 天前
窗边白雏菊与旧书:用 Awaking 留住一束暖光
ios·app·产品
茶底世界之下3 天前
阴天海边的蓝船:用 Awaking 把灰蓝调成清亮主角
ios·app·产品
Digitally3 天前
如何将 iPhone 备份到 iCloud?
ios
传奇开心果编程4 天前
【Flutter踩坑排雷】第19课:路由硬编码坑|字符串路由书写错误,页面跳转失败排查
android·flutter·ios·移动开发·跨平台·ui框架·声明式ui
茶底世界之下4 天前
雨后街口的斑马线:用 Awaking 把颜色让给光与步伐
ios·app·产品
茶底世界之下5 天前
晨雾河岸的旧书摊:用 Awaking 给木色一点暖光
ios·app·产品
90后的晨仔5 天前
在 macOS 27 上运行 Xcode 26
ios
茶底世界之下6 天前
山间站台不必转暖:用 Awaking 留住冷光与红箱
ios·app·产品