【iOS】This operation can fail if the version of the OS on the device is incompatible
Failed to prepare device for development.
This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your mac and device in order to correctly detect compatibility.
未能為開發(fā)準備設備。
如果設備上的操作系統(tǒng)版本與安裝的 Xcode 版本不兼容,此操作可能會失敗。您可能還需要重新啟動 Mac 和設備才能正確檢測兼容性。
其實主要原因就是iOS系統(tǒng)更新之后,Xcode下沒有相應版本的開發(fā)調試包,在網(wǎng)上尋找答案時,有的回答是把手機關機,重啟之后,就可以了,但是我嘗試之后并沒有成功,收來在stack overFlow上找到了這個比較靠譜的方法:
首先在iphone開發(fā)包地址 下載和你最新系統(tǒng)的開發(fā)調試包;
https://github.com/filsv/iOSDeviceSupport
然后將這個包解壓到mac的 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
然后重啟Xcode文章來源:http://www.zghlxwxcb.cn/news/detail-507594.html
重啟Xcode沒管用,我又重啟的電腦,已跑通文章來源地址http://www.zghlxwxcb.cn/news/detail-507594.html
到了這里,關于【iOS】This operation can fail if the version of the OS on the device is incompatible的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!