Questions tagged [bitcode]

An intermediate representation of an LLVM-compiled program, which can be used by Apple to optimize binaries submitted to their App Store(s) without requiring involvement from the original developer.

Coming to general attention during WWDC 2015, Bitcode is according to Apple's docs:

an intermediate representation of a compiled program. Apps you upload to iTunes Connect that contain bitcode will be compiled and linked on the App Store. Including bitcode will allow Apple to re-optimize your app binary in the future without the need to submit a new version of your app to the store.

Likely a direct usage of LLVM's Bitcode file format, or perhaps the name is being repurposed to market a higher-level system involving the same.

283 questions
392
votes
8 answers

New warnings in iOS 9: "all bitcode will be dropped"

I have this new warning about the Google Framework in my app: (null): URGENT: all bitcode will be dropped because '/Users/myname/Library/Mobile …
C.Farrugia
  • 4,086
  • 3
  • 12
  • 12
272
votes
6 answers

What does ENABLE_BITCODE do in xcode 7?

I have a problem with the embedded bitcode term. What is embedded bitcode? When to enable, ENABLE_BITCODE in new Xcode? What happens to the binary when enabled, ENABLE_BITCODE in Xcode 7?
damithH
  • 4,818
  • 2
  • 23
  • 30
258
votes
7 answers

Impact of Xcode build options "Enable bitcode" Yes/No

Yesterday I recognized a ton of warnings regarding the parse.com library: URGENT: all bitcode will be dropped because '[path]/Parse.framework/Parse(PFAnalytics.o)' was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting…
luk2302
  • 46,204
  • 19
  • 86
  • 119
96
votes
10 answers

Xcode 7 and ENABLE_BITCODE=YES setting does not work

I have followed several threads around the new ENABLE_BITCODE setting in Xcode, have also tried as much as I can (admitted I'm not a xcode pro) but still cannot get the project to compile for use on my test phone? My app runs fine on the simulator…
DirkLX
  • 1,309
  • 1
  • 8
  • 15
91
votes
4 answers

How do I xcodebuild a static library with Bitcode enabled?

Xcode 7 introduces Bitcode, which is some sort of LLVM intermediate binary that means Apple's servers can recompile my app for different architectures without my involvement. At Lookback, I distribute a static archive framework with our library. It…
nevyn
  • 6,829
  • 3
  • 30
  • 41
83
votes
5 answers

Google Analytics libAdIdAccess.a does not contain bitcode

Xcode 7 beta 3 just installed some "additional components" (now Version 7.0 beta 3 (7A152u)), and now I'm getting a compiler error: ld: '//Vendor/Analytics/GoogleAnalytics/libAdIdAccess.a(TAGActualAdIdAccess.o)' does not contain…
bdalziel
  • 2,005
  • 3
  • 16
  • 30
60
votes
8 answers

Disable bitcode for project and cocoapods dependencies with Xcode 7?

How can you disable bitcode for your project and cocoapod dependencies? Here is the error I get when trying to run my project with Xcode 7. does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain…
jherg
  • 1,526
  • 2
  • 9
  • 15
58
votes
2 answers

-fembed-bitcode is not supported on versions of iOS prior to 6.0

Recently i downloaded xcode 7 beta and facing the error: -fembed-bitcode is not supported on versions of iOS prior to 6.0 Is there any work around to fix this issue with out changing deployment target? Thanks in advance.
Kiran
  • 1,107
  • 1
  • 7
  • 19
54
votes
5 answers

iOS library to BitCode

I recently downloaded Xcode 7 beta, and Xcode complains about some of my C libraries not being compiled into BitCode. How would I go about telling Clang to produce BitCode that is compatible with iOS? I've seen similar answers on stackoverflow, but…
stack_tom
  • 900
  • 2
  • 8
  • 17
41
votes
1 answer

What's the difference between `-fembed-bitcode` and BITCODE_GENERATION_MODE?

I've been updating a static library to support bitcode, and from my research I found two ways to achieve that: Adding the fembed-bitcode flag to the Other C flags option in my project Build Settings (link) Adding a User-defined Setting with the key…
heitortsergent
  • 1,563
  • 2
  • 16
  • 23
40
votes
3 answers

Invalid bitcode signature on xcode

After updating Xcode to version 8.3 I'm getting this error: error: Invalid bitcode signature clang: error: linker command failed with exit code 1 (use -v to see invocation) Bitcode is not even enabled on my project. How can I fix this?
Oded Harth
  • 4,204
  • 8
  • 33
  • 57
39
votes
5 answers

How to check a static library is built contain bitcode?

I have a static library that is built by other company. I want to know if it's a static library containing bitcode, which command can detect it in terminal?
xCocoa
  • 393
  • 1
  • 4
  • 6
35
votes
5 answers

Bitcode Compile During Archive Never Finishes

I am preparing an app for ad hoc distribution via Test Flight. I have stepped through (successfully) all of the preparatory steps in this Ray Wenderlich article already (https://www.raywenderlich.com/48750/testflight-sdk-tutorial), and I feel…
zeeple
  • 5,181
  • 11
  • 38
  • 65
32
votes
6 answers

How to check if a framework is Bitcode supported for Xcode7

From Xcode 7 it became one of the common problem that third party frameworks should support Bitcode. We can also disable the BITCODE by setting ENABLE_BITCODE to NO in Build settings. But i do not want to turn it off, instead i want to convert all…
ipraba
  • 16,095
  • 3
  • 54
  • 58
25
votes
3 answers

Failed to verify bitcode while exporting archive for ad hoc distribution - tried Xcode 8.3.3 & Xcode 9

Apps containing our framework complains about missing bitcode while exporting archive for Ad-hoc distribution. I have gone through the documentation provided by Apple in this regard Technical Note TN2432. The documentations' listed possible root…
Vipin
  • 1,639
  • 1
  • 14
  • 13
1
2 3
18 19