Xcode-報(bào)錯(cuò)問題總結(jié)大全
M1芯片報(bào)錯(cuò)
-
YYKit
報(bào)錯(cuò):ld: in /Users/xxx/Desktop/xxx/Pods/YYKit/Vendor/WebP.framework/WebP(libwebpencode_la-config.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
解決方法:
- 項(xiàng)目添加
arm64
:打開路徑:左側(cè)項(xiàng)目名一級(jí)目錄
->PROJECT
->項(xiàng)目名
->Build Settings
->Excluded Architectures
里面在Debug
和Release
模式下国章,分別添加:Any iOS Simulator SDK
->arm64
八秃;
如圖:
-
Pod
添加arm64
:打開路徑:左側(cè)Pods一級(jí)目錄
->PROJECT
->Pods
->Build Settings
->Excluded Architectures
里面在Debug
和Release
模式下裁替,分別添加:Any iOS Simulator SDK
->arm64
拣技;如圖: