/Users/xxx/xxx/Pods/Target Support Files/Pods-xxx/Pods-xxx-frameworks.sh: line xx: ARCHS[@]: unbo...

Xcode11真机、模拟器都没问题,Xcode12上真机运行没问题但是模拟器运行出现如下错误:


截屏2021-05-28 下午3.07.30.png

解决方法如下:
Target -- Build Setting VALID_ARCHS (没有VALID_ARCHS)可以添加对应的KEY
然后在其中设置对应的value如下

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))

如下图所示:


截屏2021-05-28 下午3.05.45.png

然后就可以运行了。
如果有用,动动你的小手双击“666”

你可能感兴趣的:(/Users/xxx/xxx/Pods/Target Support Files/Pods-xxx/Pods-xxx-frameworks.sh: line xx: ARCHS[@]: unbo...)