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