[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然后重启。

相关推荐
2501_9159184111 小时前
HTTPS 代理失效,启用双向认证(mTLS)的 iOS 应用网络怎么抓包调试
android·网络·ios·小程序·https·uni-app·iphone
Swift社区11 小时前
Flutter 路由系统,对比 RN / Web / iOS 有什么本质不同?
前端·flutter·ios
zhyongrui11 小时前
SnipTrip 发热优化实战:从 60Hz 到 30Hz 的性能之旅
ios·swiftui·swift
Andy Dennis12 小时前
ios开发 xcode配置
ios·cocoa·xcode
JoyCong199812 小时前
iOS 27 六大功能前瞻:折叠屏、AI Siri与“雪豹式”流畅体验,搭配ToDesk开启跨设备新协作
人工智能·ios·cocoa
linweidong12 小时前
屏幕尺寸的万花筒:如何在 iOS 碎片化生态中以不变应万变?
macos·ios·移动开发·objective-c·cocoa·ios面试·ios面经
Cestb0n12 小时前
iOS 逆向分析:东方财富请求头 em-clt-auth 与 qgqp-b-id 算法还原
python·算法·ios·金融·逆向安全
00后程序员张14 小时前
无需越狱,来对 iOS 设备进行调试、管理与分析
android·ios·小程序·https·uni-app·iphone·webview
00后程序员张14 小时前
在 iOS 上架中如何批量方便快捷管理 Bundle ID
android·ios·小程序·https·uni-app·iphone·webview
山东布谷网络科技15 小时前
海外1v1视频社交APP开发难点与核心功能全解析
开发语言·数据库·mysql·ios·php·音视频·软件需求