如果你升級(jí)Xcode12以后芹关,模擬器編譯報(bào)如下錯(cuò)誤,請(qǐng)接著往下看
The linked library 'xxxx.a/Framework' is missing one or more architectures required by this target: armv7.
原因:
在Xcode11時(shí)代侥衬,Mac電腦使用的是因特爾代的芯片诗祸,架構(gòu)是x86轴总。但是到了Xcode12時(shí)代,蘋果將會(huì)發(fā)布基于arm架構(gòu)的電腦肘习,就是和iphone际乘、iPad一樣架構(gòu)的芯片漂佩。所以Xcode12的模擬器現(xiàn)在就不再對(duì)x86_64默認(rèn)支持了罪塔,需要手動(dòng)添加投蝉。
解決方案:
TARGETS ->Build Settinds -> 搜索VALID_ARCHS ->添加 x86_64