- 遇到問題
升級xcode12報錯 'xxx.a' is missing one or more architectures required by this target: x86_64.
- 解決問題
在buildsetting ->VALID_ARCHS
里的debug添加x86_64
如果xxx.a的xxx是一個私有庫,把私有庫的podspec文件的EXCLUDE_ARCHS添加 x86_64
原因分析
Xcode12蘋果推出了新的arm架構的mac,會默認支持x86_64所以非arm架構的mac需要手動支持知識補充(cpu架構)
真機:
- armv7 iPhone4及以前
- armv7s iPhone5及以前
- arm64 iPhone5以后
模擬器:
- i386 32位模擬器
- x86_64 是針對x86架構64位處理器