I cloned Apple's LLVM repo from github (link), 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:
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.
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:
Code Block 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.