ld: -bundle 和 -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) 不能一起使用

ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together

我想构建我的应用并启用 Bitcode。据我所知,我所有的第 3 方库依赖项都启用了 Bitcode。但是当我进行构建时,出现此错误:

ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together

我该如何解决这个问题?

我错误地将 DEBUGTEST 配置设置为使用 Bitcode 构建,这就是导致上述错误的原因。仅为 RELEASE 启用 Bitcode 修复了它:

(您的应用程序和任何嵌入式框架目标应如下所示——完全不要在您的测试和 UI 测试目标上启用 Bitcode。)