1

iOS 9 has introduced App Thinning in three ways:

  1. App Slicing

  2. Resource On Demand

  3. Bit Code: sort of plug-in for iOS App

I can see tutorial as well as example code for 1. and 2., but I can't find details for Bitcode.

user102008
  • 30,736
  • 10
  • 83
  • 104
Sheshnath
  • 3,293
  • 1
  • 32
  • 60
  • I wrote an article that aims to explain what the Bitcode is, you can find it here: http://lowlevelbits.org/bitcode-demystified/ – AlexDenisov Oct 24 '15 at 20:51
  • @shesh nath can you please send me the links for 1 and 2? I didn't find any examples to implement it in code – SRI Mar 25 '19 at 13:19
  • @SRI - this post is quite old, now i can't remember/access examples, please google it – Sheshnath Mar 25 '19 at 13:27

1 Answers1

1

Apple Documentation on this (quite short compared to the other two):

Bitcode is 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.

Citing Arstechnica for further explanation:

The final piece of the puzzle is something Apple calls "Bitcode." When developers upload apps to the App Store, they'll no longer be submitting pre-compiled binaries, but an "intermediate representation" of those apps that is compiled on demand depending on the device you're downloading it to. This enables some of the App Slicing functionality—it determines whether your device downloads a 32-bit or 64-bit binary.

and it is activated by ENABLE_BITCODE in Project > Build Settings > Build Options > Enable bitcode.

Steve Wilford
  • 8,894
  • 5
  • 42
  • 66
Michal
  • 15,429
  • 10
  • 73
  • 104
  • In which sense? Were you not able to activate it? Or you don't understand it? The activation is pretty straight forward. – Michal Sep 11 '15 at 06:12
  • this point:- "Apps you upload to iTunes Connect that contain bitcode will be compiled and linked on the App Store." , here bitcode means what just enabled bitcode in build setting or code of, swift or objective-c – Sheshnath Sep 11 '15 at 06:32
  • Indeed that is correct. Bitcode is not a plug-in as you are asking in your question. It is submitting you app one step before compilation - so depending on the device, the app will be compiled for 32 or 64 bit architecture. – Michal Sep 11 '15 at 07:31