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

相关推荐
吴Wu涛涛涛涛涛Tao30 分钟前
深入理解 Swift Codable:从基础到进阶
ios
Jouzzy6 小时前
【iOS安全】iPhone X iOS 16.7.11 (20H360) WinRa1n 越狱教程
安全·ios·iphone
roman_日积跬步-终至千里16 小时前
【Go语言基础】基本语法
开发语言·golang·xcode
二流小码农19 小时前
鸿蒙开发:实现一个标题栏吸顶
android·ios·harmonyos
season_zhu19 小时前
iOS开发:关于日志框架
ios·架构·swift
Digitally1 天前
如何在电脑上轻松访问 iPhone 文件
ios·电脑·iphone
安和昂1 天前
【iOS】YYModel源码解析
ios
pop_xiaoli1 天前
UI学习—cell的复用和自定义cell
学习·ui·ios
Daniel_Coder1 天前
Xcode 16.4 + iOS 18 系统运行时崩溃:___cxa_current_primary_exception 符号丢失的原因与解决方案
ios·xcode·ios 18·dyld·libc++abi
烈焰晴天1 天前
使用ReactNative加载Svga动画支持三端【Android/IOS/Harmony】
android·react native·ios