辦法: 手動添加設備支持文件(暫時解決方式)
如果您無法立即升級 Xcode,也可以通過下載設備支持文件來暫時解決問題。
-
檢查當前設備的 iOS 版本:
- 連接設備到 Mac,打開 Xcode 查看提示的 iOS 版本。
- 例如,如果您的設備是 iOS 18,但 Xcode 不支持,說明缺少?
Device Support
?文件。
-
下載對應的設備支持文件:
- 訪問以下 GitHub 倉庫,查找對應的 iOS Device Support 文件:
GitHub - iGhibli/iOS-DeviceSupport: This repository holds the device support files for the iOS, and I will update it regularly. - 下載與設備 iOS 版本對應的文件夾,例如?
18.x
。
- 訪問以下 GitHub 倉庫,查找對應的 iOS Device Support 文件:
-
拷貝設備支持文件到 Xcode:
- 打開 Finder,按以下路徑查找 Xcode 的?
DeviceSupport
?文件夾:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
- 將下載的設備支持文件?解壓縮,然后拷貝到?
DeviceSupport
?文件夾中。
- 打開 Finder,按以下路徑查找 Xcode 的?
-
重新啟動 Xcode 并連接設備:
- 現在 Xcode 應該可以識別新版本的設備。