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
6
votes
1 answer

What is exact connection between BITCODE_ENABLE and dylib framework?

I have seen many reference Link for find out connection between the BITCODE_ENABLE and .dylib framework, But i can not get positive result. Please anyone help me what is the exact connection between both and also mention use of BITCODE_ENABLE…
Hitesh Surani
  • 12,733
  • 6
  • 54
  • 65
6
votes
1 answer

SDK does not contain bitcode ios

In one of my project i am integrating paytab ios sdk while integration error occurs that is a(PayTabCardReaderViewController.o)' does not contain bitcode. I have try with enable bitcode=No but after enable bitcode=no it show me more 40…
Jaydeep Chauhan
  • 309
  • 1
  • 3
  • 12
6
votes
1 answer

How to enable or disable bitcode for specific library or SDK in Xcode project

I have many external libraries and SDKs in my project. And some of them does not support bitcode. So I have to disable bitcode. But some libraries like ParseCrashReporting, does require it to symbolicate the crash reports. I want to disable and…
iBug
  • 2,334
  • 3
  • 32
  • 65
6
votes
1 answer

IOS: xcodebuild command disable bitcode in Build Settings

I want to disable Bitcode in the build settings of a .xcodeproj through terminal commands. I have searched all over but only found commands to build or archive the project from the terminal. Can you please give me an example how this command looks…
JavaAndroider
  • 97
  • 3
  • 9
6
votes
1 answer

iOS fat binaries: should every arch include bitcode?

When building a library that is to be used in bitcode-enabled apps, does each arch in the fat binary need to be built with -fembed-bitcode or only one of them? One of them because the bitcode is architecture-independent and will just be…
OrangeDog
  • 36,653
  • 12
  • 122
  • 207
6
votes
2 answers

Xcode 7: -weak_library and -bitcode_bundle cannot be used together

When deploying to iPhone & Apple Watch with Xcode7, I got this error: ld: -weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together Would like to ask how best to resolve this issue ? Follow-ups: Apple Watch…
Felix
  • 751
  • 5
  • 10
5
votes
1 answer

App size has increased 2X after disabling bitcode in XCode14

XCode14 has disabled bitcode and Apple says they won't accept bitcode enabled apps. Disabling bitcode increases the size of our app by 2X. This can only help reduce the app size by a few Mb. Has anyone faced this issue and been able to reduce their…
Keer
  • 75
  • 7
5
votes
1 answer

Bitcode enable for iOS webrtc framework. Error: -mllvm is not supported with -fembed-bitcode

Using webrtc through the pod, https://cocoapods.org/pods/WebRTC However, I cant enable bitcode in the project. The solution requires building from source with bitcode…
tanmoy
  • 1,276
  • 1
  • 10
  • 28
5
votes
3 answers

Can't build Webrtc with Bitcode enabled

I am trying to rebuild WebRTC iOS framework with Bitcode enabled but it's not working it's giving me errors. And the error messages are clang++: error: unknown argument: '-ffile-compilation-dir=.' clang++: error: -gdwarf-aranges is not supported…
Jihan
  • 95
  • 9
5
votes
0 answers

Extracting LLVM bitcode embedded using `-lto-embed-bitcode`

Goal: Extract full-program (merged) post-LTO bitcode from an ELF binary. The program happens to be written in Rust, but I don't think that's a crucial detail. I'm able to compile a Rust program into an ELF binary with a .llvmbc section using the…
Edd Barrett
  • 3,425
  • 2
  • 29
  • 48
5
votes
1 answer

How to disable Bitcode on Carthage dependencies

How to disable Bitcode on dependencies where it's enabled? This question is the opposite scenario of the question "Bitcode disabled on Carthage dependencies". Unfortunately, while the given answer by the OP was using a nice trick by stripping all…
Cœur
  • 37,241
  • 25
  • 195
  • 267
5
votes
2 answers

Xcode 9.3 cannot submit build to App Store

I've just updated to Xcode 9.3 and am having the following issue when submitting my app to the app store: Invalid Bundle - The app cannot be processed because options not allowed to be embedded in bitcode are detected in the submission. It is…
Danny Bravo
  • 4,534
  • 1
  • 25
  • 43
5
votes
2 answers

Xcode 8.3 xcodebuild exportArchive not working "No applicable devices found" error

I'm trying to create the ipa file like so: xcodebuild -exportArchive -archivePath /tmp/public_1.46.0.2029_production.xcarchive -exportPath /tmp/avner -exportOptionsPlist export.plist The export.plist is minimal (I've also tried stripping it…
Avba
  • 14,822
  • 20
  • 92
  • 192
5
votes
0 answers

xcodebuild with bitcode not working

I'm building my FAT framework for distribution with bitcode using the following command: xcodebuild -sdk iphoneos CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO xcodebuild -sdk iphonesimulator CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO lipo…
Avba
  • 14,822
  • 20
  • 92
  • 192
5
votes
2 answers

error: Invalid bitcode version (Producer: '800.0.24.1_0' Reader: '703.0.31_0') with XCode 7.3.1

I got the error when archive my app. error: Invalid bitcode version (Producer: '800.0.24.1_0' Reader: '703.0.31_0') I'm using XCode 7.3.1 Target 8.0 Enabled Bitcode I was successed to archive the build last week but I got this issue today. I…
mthuong
  • 407
  • 1
  • 5
  • 13