1.安裝到手機報錯:
“(null)” is of a model that is not supported by this version of Xcode. Please use a different device
解決方案:重啟Xcode
2.手機升級系統(tǒng)后報錯:
Could not locate device support files (Could not find Developer Disk Image)
解決方案:
查看手機設(shè)置-通用-關(guān)于本機-版本柄驻,例如:手機升級系統(tǒng)至iOS11以上11.2.1(15C53)沦疾,而Xcode版本為Xcode8甚至更低,就缺少相應的測試包
可以在網(wǎng)上搜索 ?“iOS11.2 真機測試包”妨蛹,網(wǎng)上有很多
可以直接下載:https://pan.baidu.com/s/1qZvudUc?密碼:3122
也可以從安裝過Xcode9的朋友或同行的電腦上copy下來,打開應用程序-選中Xcode-右鍵顯示包內(nèi)容-查找下列目錄Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport屉佳,將測試包放到此目錄下后重啟Xcode-運行到真機窃判。