在開發(fā)過程中,有時(shí)候在真機(jī)調(diào)試的時(shí)候出現(xiàn)如下的編譯錯(cuò)誤。
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.
這種一般都是手機(jī)系統(tǒng)升級(jí)后,xCode沒有升級(jí)導(dǎo)致的找不到表意調(diào)試的文件包。
其實(shí)就是iOS系統(tǒng)升級(jí)后,xCode缺少了系統(tǒng)編譯支持的文件;只需要到下面地址去找到和你手機(jī)系統(tǒng)版本匹配的文件包,
iPhoneOSDeviceSupport
然后放到如下位置即可。
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport