Post

Replies

Boosts

Views

Activity

Xcode 12.5 bitcode error with static library bazel xcodebuil.
Xcode 12.5 bitcode error with static library bazel xcodebuil. I am a third-party technology provider. Our output product is a static library, built with Bazel, supports bitcode, and the built IDE is XCode11. It is normal to use static libraries in Xcode 12.4, but after IDE upgrade to 12.5, bitcode is no longer supported, and an error is always reported:This is an LLVM bug. "Wrong number of operands !124 = !{!"branch_weights", i32 1, i32 2001, i32 2001, i32 2001, i32 2000} Wrong number of operands !124 = !{!"branch_weights", i32 1, i32 2001, i32 2001, i32 2001, i32 2000} Wrong number of operands !124 = !{!"branch_weights", i32 1, i32 2001, i32 2001, i32 2001, i32 2000} Wrong number of operands !124 = !{!"branch_weights", i32 1, i32 2001, i32 2001, i32 2001, i32 2000} Wrong number of operands !124 = !{!"branch_weights", i32 1, i32 2001, i32 2001, i32 2001, i32 2000} Wrong number of operands !124 = !{!"branch_weights", i32 1, i32 2001, i32 2001, i32 2001, i32 2000} Wrong number of operands !124 = !{!"branch_weights", i32 1, i32 2001, i32 2001, i32 2001, i32 2000} LLVM ERROR: Broken module found, compilation aborted! clang: error: unable to execute command: Abort trap: 6 clang: error: linker command failed due to signal (use -v to see invocation) Command Ld failed with a nonzero exit code" If I switch the build IDE from XCode11 to XCode12.5, it will cause all IDEs not using XCode12.5 to support bitcode. Error log: "ld: could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '1205.0.22.9.0_0' Reader: '1200.0.32.28_0')', using libLTO version 'LLVM version 12.0.0, (clang-1200.0.32.28)' for architecture armv7"
2
0
5.5k
May ’21