我需要发布一个启用了位码的框架,这很麻烦。我将项目设置中的“启用位码”设置为“是”,它可以为真实设备和模拟器构建干净。
我想测试这个库,所以我将它集成到我为此目的创建的一个新应用程序中,但现在它只为模拟器构建。当我尝试为真实设备构建时,我得到:
ld: '/path/to/Framework.framework/Company(File.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
就像我说的,我是在启用 Bitcode 的情况下构建的,所以我不确定为什么会发生这种情况。
有任何想法吗?谢谢