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

相关推荐
游戏开发爱好者85 小时前
WebSocket 抓包怎么查看内容?从握手到消息帧完整解读
网络协议·计算机网络·网络安全·ios·adb·https·udp
悟空瞎说8 小时前
# Alamofire 使用文档 完整翻译
ios
WeiAreYoung14 小时前
Flutter+iOS 实现 Live Activity
flutter·ios
2501_9160088916 小时前
Swift多环境配置:利用Scheme实现灵活的多环境管理
开发语言·ide·vscode·ios·个人开发·swift·敏捷流程
00后程序员张17 小时前
Windows / Linux / Mac 上不用 Xcode 把 IPA 上传到 App Store,upload 命令详解
android·ios·小程序·https·uni-app·iphone·webview
秦少游在淮海17 小时前
id - Android、iOS
android·ios
太子釢1 天前
用 AI 完整实现 Github 客户端:基于 KMP + SwiftUI + Compose
android·人工智能·ios
软泡芙1 天前
【iOS】 Alamofire + Moya + SwiftData 完整教程
ios
我是谁的程序员1 天前
Windows / Linux / Mac 上不用 Xcode 把 IPA 上传到 App Store,upload 命令详解
后端·ios
iFlyCai1 天前
iOS中的单例模式详解
ios·单例模式·objective-c·多线程·swift