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

相关推荐
—Qeyser1 小时前
Flutter CustomScrollView 自定义滚动视图 - 完全指南
android·flutter·ios
软件小滔2 小时前
我使用MAC WiFi Explorer Pro完成了一次家庭网络“大扫除”
网络·macos·智能路由器·mac·应用推荐·wifi explorer
不爱吃糖的程序媛2 小时前
Kuikly-OH 实践(mac版本)
macos
活蹦乱跳酸菜鱼2 小时前
MAC 发出的一个帧(MAC Frame)及其完整的帧格式
网络·macos
—Qeyser2 小时前
Flutter ListView 列表组件完全指南
android·flutter·ios
qq_448011163 小时前
Mac手动删除应用
macos
Swift社区3 小时前
LeetCode 375 - 猜数字大小 II
算法·leetcode·swift
游戏开发爱好者84 小时前
如何在 Windows 环境下测试 iOS App,实时日志,CPU监控
android·ios·小程序·https·uni-app·iphone·webview
小鹿软件办公4 小时前
Google Chrome 151 版本将停止 macOS 12 Monterey 支持
chrome·macos
cypking4 小时前
一、Mac 下 JDK + Maven 安装配置文档(Bash 终端 / Source 生效)
java·macos·maven