xcode12下carthage无法编译的问题

具体报错如下:
have the same architectures (arm64) and can't be in the same fat output file

1、把以下内容写入文件 /tmp/helper.xcconfig
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))

2、执行:
export XCODE_XCCONFIG_FILE=/tmp/helper.xcconfig

3、然后编译:
carthage build --platform iOS --no-use-binaries --cache-builds

posted on 2020-09-30 19:34  barani  阅读(1519)  评论(0编辑  收藏  举报

导航