Xcode-报错问题总结大全
M1芯片报错
-
YYKit
报错: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
解决方法:
- 项目添加
arm64
:打开路径:左侧项目名一级目录
->PROJECT
->项目名
->Build Settings
->Excluded Architectures
里面在Debug
和Release
模式下,分别添加:Any iOS Simulator SDK
->arm64
;
如图:
-
Pod
添加arm64
:打开路径:左侧Pods一级目录
->PROJECT
->Pods
->Build Settings
->Excluded Architectures
里面在Debug
和Release
模式下,分别添加:Any iOS Simulator SDK
->arm64
;如图: