今天升級了XCode14后發(fā)現(xiàn)真機(jī)測試的時候會打印如下錯誤围详,并加載幾分鐘后才能把程序運(yùn)行起來搔耕。
warning: libobjc.A.dylib is being read from process memory. This indicates that LLDB could not find the on-disk shared cache for this device. This will likely reduce debugging performance.
這是由于升級了XCode14后符號表不一致導(dǎo)致的沃粗。
解決辦法:
在Finder中前往"~/Library/Developer/Xcode/iOS DeviceSupport"文件夾,找到你當(dāng)前運(yùn)行的真機(jī)系統(tǒng)對應(yīng)的文件夾屎篱,刪掉项乒,然后重新拔插手機(jī)啰劲,等待XCode重新fetch symbol即可。