Post

Replies

Boosts

Views

Activity

Locally Built Apple-LLVM Toolchain Can't Built Bitcode Supported Static Framework
I cloned Apple's LLVM repo from github (link), - https://github.com/apple/llvm-project/ then I took the apple/stable/20200714 branch, and successfully built an Xcode toolchain. Using that locally built toolchain, I built my static framework with bitcode enabled, and included that framework in my iOS app project. When I was trying to build the app with bitcode enabled, everything was fine, until I choose to "Archive" the app, the following error is encountered: ld: loaded libLTO doesn't support -bitcode_hide_symbols: LLVM version 11.0.1release for architecture armv7 This error only happens when I use my locally built toolchain. No error when archiving with Xcode's default toolchain. Since I used the stable branch of the Apple-LLVM, I didn't expect the difference in the behavior. My Xcode version is 11.5. Any input regarding this issue will be highly appreciated.
3
0
1.2k
Jan ’21