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

相关推荐
CocoaKier1 小时前
如何安装旧版的MacOS系统?
macos·ios·mac
2501_915106321 小时前
iOS开发之Xcode常用调试技巧总结
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
sakiko_3 小时前
使用SPM(Xcode27), 并解决Package.swift不存在问题
swift
美狐美颜SDK开放平台3 小时前
直播APP平台搭建需要哪些技术?视频美颜SDK只是其中一环
android·ios·音视频·直播美颜sdk·视频美颜sdk
GeofferyLibrom4 小时前
# Mac 平台 Chiaki-ng 配置指南: Base64 ID 获取
macos·base64·chiaki-ng·npsso·psnawp
GeofferyLibrom4 小时前
PS5 自动化挂机指南:基于 Mac + Chiaki-ng 视觉识别——龙信2自动挂机实战
运维·macos·自动化
小π军4 小时前
安卓、iOS、鸿蒙三端的理解
android·ios·harmonyos
月月如常4 小时前
Typora 粘贴图片时 PicGo 弹窗的解决方案
macos·typora·picgo
andyweike5 小时前
CGRect
macos·objective-c·cocoa
疯狂敲代码的老刘5 小时前
DigUp:2.8千星开源Mac语义搜索,Google DeepMind模型本机运行找遍所有文件
macos