The linked library ‘xxx‘ is missing one or more architectures required by this target: arm

报错:
The linked library ‘libPods-xxx.a’ is missing one or more architectures required by this target: armv7.

原因:
原有第三方库尚未配置好arm架构的Xcode。这里是腾讯的UGC库,2021款imac编译时出现上述问题。

解决方法:
进入如下路径:
/Users/你的Mac名称/Library/Developer/Xcode/DerivedData
找到出现问题的项目,删除退出重新编译运行即可。

猜你喜欢

转载自blog.csdn.net/kicinio/article/details/120913986
今日推荐