升級 iOS 12 之后,使用 Xcode 9 真機調試會提示錯誤:
Could not locate device support files.
This iPhone 6 Plus is running iOS 12.0 (16A366), which may not be supported by this version of Xcode.
這是因為 Xcode 9 默認沒有自帶 iOS 12 的調試包,下載調試包,然后重新打開 Xcode 就可以了。
iOS 真機調試包集合,包含 iOS 12,下載地址:https://pan.baidu.com/s/1lav6Xiy16lpEA9lUl16m6w 密碼: w53z
已包含最新的 12.2
iOS 12.2 (16E5181e)
iOS12.1 (16B5068g) beta2
iOS12.1 (16B5059d) beta1
打開 Finder,按下 command + shift + G,輸入 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport,將文件解壓到這個目錄,如圖:

