问题:
连接上低版本ios系统的设备Xcode报错,无法进行真机调试:
“Could not locate device support files”。“You may be able to resolve the issue by installing the latest version of Xcode from the Mac App Store or developer.apple.com.”
image.png
image.png
解决:
1、打开网站(https://github.com/filsv/iOSDeviceSupport?tab=readme-ov-file
)下载真机ios系统版本对应的DeviceSupport文件。比如 14.6.zip。
2、退出Xcode,断开连在电脑上的真机设备。
3、解压下载的压缩包,将解压后的文件夹拷贝到下面这个目录,Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
image.png
4、重启Xcode就可以了。
⚠️注意:
如果电脑上有多个Xcode,第3步解压后的文件要放到需要支持的Xcode.app中的DeviceSupport文件下。