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

相关推荐
浮生若茶80881 天前
Flutter环境搭建全攻略之-Macos环境搭建
flutter·macos
大熊猫侯佩1 天前
冰火岛 Tech 传:Apple Foundation Models 心法解密(上集)
llm·ai编程·swift
HarderCoder1 天前
深入理解 SwiftUI 的 Structural Identity:为什么“换个条件分支”就会丢状态?
swiftui·swift
HarderCoder1 天前
Swift Continuations 完全指南:一口气弄懂 4 种“桥梁”
swift
xingxing_F1 天前
SoundSource for Mac 音频控制工具
macos·音视频
snows_l1 天前
MacOS 通过Homebrew 安装nvm
前端·macos
西京刀客1 天前
macos安装openjdk17
java·macos·java17
@Dai1 天前
MacOS微信双开,亲测有效
macos·微信
库奇噜啦呼1 天前
【iOS】懒加载
macos·objective-c·cocoa
HarderCoder1 天前
Swift 的 `withoutActuallyEscaping`:借一个 `@escaping` 身份,但不真的逃跑
swift