Xcode12报错The linked framework 'xxxx.framework' is missing one or more architectures require by th...

问题显示
升级到Xcode12后,运行Release模式后,会提示以下信息:

The linked library 'xxxx.a/Framework' is missing one or more architectures required by this target: armv7.

或者问题显示

xxx/Pods/Target Support Files/Pods-xxx/Pods-xxx-frameworks.sh: line 128: ARCHS[@]: unbound variable
Command PhaseScriptExecution failed with a nonzero exit code

涉及框架架构问题

解决方法如下:

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

如图效果图


image.png

你可能感兴趣的:(Xcode12报错The linked framework 'xxxx.framework' is missing one or more architectures require by th...)