You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--apple_bitcode flag ineffective on iOS targets #4982
When creating an apple_static_library target like [1] and building this via bazel build --apple_bitcode=embedded --ios_multi_cpus=arm64 -c opt //:myappletarget the bitcode is not being included in the actual build causing issues when trying to run the code on-device similar to:
/Project/myapplelibrary.a(lib1.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 arm64
However, specifying --copt=-fembed-bitcode causes a conflict with the -fdata-sections and -ffunction-sections flags that bazel uses by default.
How can this be resolved? Is there some way I can resolve this temporarily?
This is for bazel 0.11.1 running on MacOS with latest released XCode.
Activity
sergiocampama commentedon Nov 17, 2018
this is an issue with
cc_librarynot detecting the--apple_bitcodeflag and/or the C++ crosstool being incompatible with bitcodekeith commentedon Feb 5, 2019
I've started to take a stab at this #7356
stristr commentedon Mar 26, 2019
This appears to be solved in 0.24.
keith commentedon Mar 26, 2019
Yep! Thanks!
rajivshah3 commentedon Apr 7, 2019
@TemRich does #7623 fix the issue for you? I may have run into the same issue when I built Bazel from source off of f8e38d1
Enable some bitcode related tests.