1.運(yùn)行報(bào)錯(cuò)找不到文件libarclite_iphoneos.a
SDK does not contain 'libarclite' at the path '/Applications/Xcode15.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a'; try increasing the minimum deployment target
解決方法:
從Xcode14安裝目錄下/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/ 中拷貝libarclite_iphoneos.a文件到Xcode15的安裝目錄下:/Applications/Xcode15.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/ (沒有arc文件夾就自己創(chuàng)建一個(gè))
2.運(yùn)行iOS16系統(tǒng)以下手機(jī)閃退報(bào)野指針報(bào)錯(cuò)
Thread 1: EXC_BAD_ACCESS (code=1, address=0xb4000)
解決方法:
在Build Settings中的Other Linker Flags中添加-ld64可解決
參考:
iOS開發(fā) - XCode15 beta + iOS17 問題記錄
深入 iOS 靜態(tài)鏈接器(一)— ld64