Xcode11真机、模拟器都没问题,Xcode12上真机运行没问题但是模拟器运行出现如下错误:
解决方法如下:
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))
如下图所示:
然后就可以运行了。
如果有用,动动你的小手双击“666”😝😝😝