解决Xcode编译错误: missing one or more architectures

错误信息:

The linked library 'xxxxxx' is missing one or more architectures required by this target: armv7. 


解决方法:

Build Settings 中搜索 "Excluded Architectures",  复制以下内容添加即可:  

EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64=arm64 arm64e armv7 armv7s armv6 armv8EXCLUDED_ARCHS=$(inherited)$(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT))

附截图:


这样就解决了,再重新编译即可.

你可能感兴趣的:(解决Xcode编译错误: missing one or more architectures)