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
13
votes
2 answers

Bitcode errors with LinkedIn SDK

There are a couple of older questions concerning Bitcode support in LinkedIn's SDK. They seem to concur with LinkedIn's documentation that version 1.0.7 of their SDK supports Bitcode. However, when I attempt to archive our app (using Xcode 7.3.1,…
Sixten Otto
  • 14,816
  • 3
  • 48
  • 60
13
votes
2 answers

xcodebuild 7.3 can't enable bitcode

I'm developing an embbeded framework for iOS. In order to make an universal fat (with simulator and device slices), I created an aggregate target with a script that uses xcodebuild and lipo commands to generate it, as many people does. With XCode…
13
votes
3 answers

bitcode bundle could not be generated because iOS Charts

I make app with 3d library iOS-Charts. But I get the error bitcode bundle could not be generated because was built without full bitcode. from today widget. I installed it with help Carthage and I did all the instructions. I do not know how can I fix…
Alexander Khitev
  • 6,417
  • 13
  • 59
  • 115
13
votes
4 answers

How do i make fat framework with bitcode option?

Environment: XCode 7.0.1 Module: Objective-C Bundle Type: Framework Hi, I am trying to create a framework to support armv7, armv7s, arm64, i386 and x86_64. I am using aggregate to make the fat library. Inside the aggregate script, i am running two…
Deepak Badiger
  • 448
  • 7
  • 18
12
votes
2 answers

XCode 8 bitcode compatibility

I noticed an issue with the new XCode 8, that makes it impossible to archive on XCode 7 with bitcode. So for example if I'm trying to develop a library on XCode 8, when using on Xcode 7 and enabling bitcode I'm getting this error: Invalid bitcode…
Krypton
  • 233
  • 1
  • 3
  • 8
12
votes
2 answers

Xcode 7 + Dropbox Core API: Simply disable Bitcode?

I have been using Dropbox Core API in my iOS app for quite a while now. After updating to Xcode 7 I received the following error when I try to compile my project: ld: '.../Frameworks/Dropbox/iOS/DropboxSDK.framework/DropboxSDK' does not contain…
Andrei Herford
  • 17,570
  • 19
  • 91
  • 225
11
votes
3 answers

Kotlin Multiplatform library for iOS with bitcode

we use Kotlin to share a library between Android and iOS. We set up everything, but on iOS i need Bitcode enabled. After a research I found solution: kotlin { targets { fromPreset(presets.jvm, 'jvm') { mavenPublication { …
Vario
  • 490
  • 4
  • 13
11
votes
16 answers

Bitcode signature failure in Xcode

I updated Xcode to the last version, and now when I'm trying to compile the project I'm getting an error "Invalid bitcode signature", hovewer, the bitcode for my project is disabled. How can I fix it? What should I change to sign my bitcode…
Alexandr Kolesnik
  • 1,929
  • 1
  • 17
  • 30
11
votes
1 answer

Why does recompiling from bitcode make me unable to symbolicate in Xcode ad hoc releases and how do I fix it?

So this has be driving me nuts but I finally found out that the bitcode compile option when I export my app for adhoc deployment is causing my debug symbol file (dSYM) and my app UUID to mismatch meaning I cannot symbolicate any crash logs. Turning…
kmm3
  • 391
  • 3
  • 14
10
votes
2 answers

Generating Rust executable from LLVM bitcode

How can I generate an executable of an application written in Rust that was compiled into LLVM-IR bitcode? If I try to compile the .bc file with rustc it tells me stream did not contain valid UTF-8 and I can't seem to figure out if there is a…
Leonardo Marques
  • 3,721
  • 7
  • 36
  • 50
10
votes
2 answers

Is it possible to create a universal iOS framework using bitcode?

From what I understood, bitcode allows to generate binaries with an intermediary binary format. So it is the step before compiling to an ARM or x64 architecture. It is possible to create "real" .framework file for iOS since iOS 8. However, framework…
Vincent Hiribarren
  • 5,254
  • 2
  • 41
  • 65
10
votes
3 answers

Xcode 7 bitcode_strip error

My Xcode 7 beta3 project includes some framework compiled by Xcode 6, these frameworks are imported to my project by Embeded Frameworks option in "Build Phase" tab. Because these frameworks does not support bitcode, so the "Enable Bitcode" option…
pzs7602
  • 1,233
  • 1
  • 10
  • 9
9
votes
4 answers

could not reparse object file in bitcode bundle: 'Invalid bitcode version

ld: could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '902.0.39.2_0' Reader: '900.0.39.2_0')', using libLTO version 'LLVM version 9.0.0, (clang-900.0.39.2)' for architecture arm64 clang: error: linker command…
Anand Verma
  • 572
  • 1
  • 6
  • 11
9
votes
0 answers

bitcode bundle could not be generated because framework was built without full bitcode

I'm trying to build a dynamic framework (Module scheme) that needs to have bitcode enabled. I have set the Enable bitcode option from Build Settings section to YES for both the framework project and target. In the Other C Flags section I have set…
9
votes
1 answer

Bitcode bundle could not be generated for arm64

I'm encountering a build error when I set 'Enable Bitcode' to 'YES' in the build settings of a project I'm currently working on. The error is: ld: bitcode bundle could not be generated because…
Nick Daly
  • 308
  • 4
  • 13
1 2
3
21 22