自学内容网 自学内容网

【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


原文地址:https://blog.csdn.net/qq_38238956/article/details/143016867

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!