【ios】解决xcode版本过低无法真机调式的问题

最低要求和支持的 SDK:Xcode - 支持 - Apple Developer

我的Xcode版本是14.2

手机系统版本是iOS15.8.3

步骤一

在终端中运行

复制代码
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

步骤二

先去https://github.com/filsv/iOSDeviceSupport找下有没有自己系统版本的SDK,有的话下载下来放DeviceSupport即可,我是缺少了15.8,最后尝试到复制一份15.5的,然后改名为15.8就行了。如果你是其他版本的,可能得需要一个一个去试了。记得改好后要关闭Xcode后再打开。

其他

低版本如果想真机调式ios 17,关闭Xcode后再终端中输入以下命令试试:

复制代码
defaults write com.apple.dt.Xcode DVTEnableCoreDevice enabled

14.2的xcode试了没效果,看到有人14.3的成功了

参考资料:

1、https://github.com/filsv/iOSDeviceSupport

2、Missing iOS 17 device support files | Apple Developer Forums

3、https://stackoverflow.com/questions/73721778/looking-for-ios-15-7-support-files-for-xcode14

4、https://stackoverflow.com/questions/77429993/looking-for-ios-15-8-support-files-for-xcode14-214c18

相关推荐
YungFan3 小时前
iOS26适配指南之UIButton
ios·swift
共享家95277 小时前
linux-数据链路层
linux·网络·macos
红橙Darren8 小时前
手写操作系统 - 编译链接与运行
android·ios·客户端
鹏多多.11 小时前
flutter-使用device_info_plus获取手机设备信息完整指南
android·前端·flutter·ios·数据分析·前端框架
CZIDC17 小时前
MacOS字体看起来比在 Windows 上更好?
macos
Cosmoshhhyyy1 天前
linux远程部署dify和mac本地部署dify
linux·运维·macos
行星0081 天前
mac 通过homebrew 安装和使用nvm
macos·npm·node.js
麦兜*1 天前
【swift】SwiftUI动画卡顿全解:GeometryReader滥用检测与Canvas绘制替代方案
服务器·ios·swiftui·android studio·objective-c·ai编程·swift
2501_928094651 天前
Mac电脑录屏工具 Omi录屏专家(Mac中文)
macos·mac·录屏工具·omi