Failed to prepare the device for development

👨🏻‍💻 热爱摄影的程序员

👨🏻‍🎨 喜欢编码的设计师

🧕🏻 擅长设计的剪辑师

🧑🏻‍🏫 一位高冷无情的编码爱好者

大家好,我是 DevOps 工程师

欢迎分享 / 收藏 / 赞 / 在看!

【问题】使用 Xcode 连接真机 iPhone 时,出现 Failed to prepare the device for development. 的错误。

笔者相关软件设备信息:

Xcode 14.2

iOS 16.7

bash 复制代码
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 与 iOS 版本不兼容,没有找到对应设备支持包。

来到 Gitee - iOSDeviceSupport 下载对应 iOS

版本的设备支持包,解压后放到 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

目录下,重启 Xcode 即可。

笔者下载的是 iOS 16.6,同样支持 iOS 16.7

相关推荐
HarderCoder10 小时前
iOS 知识积累第一弹:从 struct 到 APP 生命周期的全景复盘
ios
goodSleep14 小时前
更新Mac OS Tahoe26用命令恢复 Mac 启动台时不小心禁用了聚焦搜索
macos
叽哥20 小时前
Flutter Riverpod上手指南
android·flutter·ios
HarderCoder2 天前
Swift 6 并发时代,如何优雅地“抢救”你的单例?
swift
zhangmeng2 天前
FlutterBoost在iOS26真机运行崩溃问题
flutter·app·swift
HarderCoder2 天前
SwiftUI 踩坑记:onAppear / task 不回调?90% 撞上了“空壳视图”!
swift
HarderCoder2 天前
@isolated(any) 深度解析:Swift 并发中的“隔离追踪器”
swift
大熊猫侯佩2 天前
桃花岛 Xcode 构建秘籍:Swift 中的 “Feature Flags” 心法
app·xcode·swift
悄然林静2 天前
Mac终端执行`brew doctor`报`openssl@1.1`警告
mac·xcode·apple
用户092 天前
SwiftUI Charts 函数绘图完全指南
ios·swiftui·swift