問題:
連接上低版本ios系統(tǒng)的設(shè)備Xcode報(bào)錯(cuò),無(wú)法進(jìn)行真機(jī)調(diào)試:
“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、打開網(wǎng)站(https://github.com/filsv/iOSDeviceSupport?tab=readme-ov-file
)下載真機(jī)ios系統(tǒng)版本對(duì)應(yīng)的DeviceSupport文件。比如 14.6.zip。
2、退出Xcode,斷開連在電腦上的真機(jī)設(shè)備。
3、解壓下載的壓縮包,將解壓后的文件夾拷貝到下面這個(gè)目錄,Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
image.png
4、重啟Xcode就可以了。
??注意:
如果電腦上有多個(gè)Xcode,第3步解壓后的文件要放到需要支持的Xcode.app中的DeviceSupport文件下。