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.

321 questions
34
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,485
  • 4
  • 59
  • 58
30
votes
8 answers

'Invalid bitcode version (Producer: '902.0.39.2_0' Reader: '900.0.37_0')'

I'm using Xcode 9.0. My pod file: pod 'Alamofire', '~> 4.3' pod 'SwiftyJSON' pod 'AlamofireSwiftyJSON' pod 'KSToastView', '0.5.7' pod 'SDWebImage', '~> 4.0' pod 'NVActivityIndicatorView' pod 'Firebase/Core' pod 'Firebase/Messaging' pod…
Himanshu Moradiya
  • 4,769
  • 4
  • 25
  • 49
26
votes
4 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,725
  • 1
  • 14
  • 13
24
votes
3 answers

App size increased(almost doubled) with Xcode 14 and Bitcode Disabled

Apple has deprecated the usage of Bitcode and is longer accepting any submissions with Bitcode enabled apps starting from Xcode 14. We at PhonePe disabled Bitcode and uploaded the app to the App Store connect via Xcode 14 and now seeing a very high…
Srikanth
  • 1,861
  • 17
  • 29
24
votes
3 answers

Do I need bcsymbolmap files created by Carthage

I am using Carthage dependency manager in my iOS project. I have the Carthage/build folder in my repository to always have ready to go built frameworks when checking out the repo. I am wondering what the bcsymbolmap files in the build folder are…
codingFriend1
  • 6,487
  • 6
  • 45
  • 67
22
votes
1 answer

ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together

I want to build my app with Bitcode enabled. As far as I know all my 3rd party library dependencies are Bitcode enabled. But when I do a build, I get this error: ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used…
Robert Atkins
  • 23,528
  • 15
  • 68
  • 97
19
votes
2 answers

How to compile OpenCV iOS with ENABLE_BITCODE

When I tried to compile my XCode project with OpenCV 2.4 iOS using XCode 7 + iOS SDK 9, XCode complained that ld: 'opencv2.framework/opencv2(alloc.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting…
grapeot
  • 1,594
  • 10
  • 21
17
votes
2 answers

Build an iOS library with Bitcode in order to have backwards compatibility with XCode 6. How?

I am building an iOS static library and I want to provide support for bitcode. In order to achieve that I go to Build settings, search for "custom compiler flags" and add -fembed-bitcode. This builds the library with bitcode and everything works…
andreasv
  • 689
  • 3
  • 11
  • 26
17
votes
2 answers

Xcode7: libGGLAnalytics.a(GGLContext+Analytics.o)' does not contain bitcode

Using Xcode7. When I run my app on the simulator I get no errors. When I try to run on a real device I get this: ld: 'Test-IOS/Pods/Google/Libraries/libGGLAnalytics.a(GGLContext+Analytics.o)' does not contain bitcode. You must rebuild it with…
Michael
  • 32,527
  • 49
  • 210
  • 370
16
votes
2 answers

Xcode takes too much time for compile bit code at time of preparing archive

I am trying to make archive but xcode get stuck at time of compile bitcode. what i have to do? Enable bitcode or disable?
Nand Parikh
  • 205
  • 1
  • 2
  • 9
15
votes
2 answers

How to compile and keep "unused" C declarations with clang -emit-llvm

Context I'm writing a compiler for a language that requires lots of runtime functions. I'm using LLVM as my backend, so the codegen needs types for all those runtime types (functions, structs, etc) and instead of defining all of them manually using…
jayphelps
  • 15,276
  • 3
  • 41
  • 54
15
votes
2 answers

Enable bitcode vs include bitcode before submitting app

What's the difference between the "Enable Bitcode" setting in the app's target & project and the "Include Bitcode" checkbox that is present before submitting to App Store? If I have "Enable Bitcode" FALSE and have "Include Bitcode" checked, what…
allaire
  • 5,995
  • 3
  • 41
  • 56
14
votes
2 answers

Bitcode bundle could not be generated (while archiving) because Static Framework (.framework) was built without full bitcode

We are trying to enable Bitcode fully in our Static Framework but we are receiving the following error while archiving the app when the framework is integrated with it though we are able to build it on the simulator or device. ld: bitcode bundle…
ihammys
  • 812
  • 7
  • 15
14
votes
2 answers

ITMS-90668 - Invalid Bundle Executable. The executable file contains incomplete bitcode

Yesterday I started to get strange error message from iTunes Connect: ITMS-90668 Invalid Bundle Executable. The executable file '...' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the…
Valentin Shergin
  • 7,166
  • 2
  • 50
  • 53
14
votes
3 answers

Compiling iOS library with bitcode enabled

I need to release a framework with bitcode enabled which turns out as a hassle. I set 'Enable Bitcode' in the project's settings to 'YES' and it builds cleanly for both a real device and a simulator. I wanted to test the library so I integrated it…
Yotam
  • 9,789
  • 13
  • 47
  • 68
1
2
3
21 22