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

App extension was built without bitcode - Only on M1 mac

I have just updated my iMac to an M1 and now one of my projects is giving me these warnings for 3 of the libraries embedded in a Widget Extension: ld: warning: all bitcode will be dropped because '/Users/..../DJSwiftHelpers_Extension' was built…
Darren
  • 10,182
  • 20
  • 95
  • 162
7
votes
1 answer

iOS/macOS app distribution failed while using framework after upgrading Xcode12 and macOS BigSur

We are unable to distribute our sample app which uses our framework as well as our users can't. While archiving and distributing to AppStore, the app is rejected with the following message: Invalid Bundle - One or more dynamic libraries that are…
nrudnyk
  • 924
  • 1
  • 7
  • 25
7
votes
4 answers

iOS - Crashlytics - missing several crashes

I have problem with Crashlytics (and with crashes shown in Xcode -> Organizer) because I don't see many of crashes that I should. From testers I should have many crashes there but I don't have. I logged into iTunes Connect and get zipped dSYM files…
Libor Zapletal
  • 13,752
  • 20
  • 95
  • 182
7
votes
1 answer

Sudden Error when Uploading to iTunesConnect: ITMS-90635 Invalid Mach-O Format / ENABLE_BITCODE

Last week i was able to upload my ipa to iTunesConnect just fine. But as of today I am getting the following error when uploading via Application Loader: ERROR ITMS-90635: "Invalid Mach-O Format. The Mach-O in bundle…
Eugen Timm
  • 744
  • 6
  • 13
7
votes
2 answers

How to tell Xcode to emit IR (LLVM Bitcode) for Swift?

I want Xcode to compile my Swift source files to bitcode (IR) instead of Mach-O objects. I'm aware that you can invoke the swift compiler with the emit-ir flag, however adding this to the "Other Swift Flags" does not work for me. The flag is set for…
Jonas
  • 1,021
  • 11
  • 17
7
votes
1 answer

Are testflight app sizes bloated by a large amount compared to actual download sizes after publishing?

I have built an iOS game with Unity. I uploaded it to the App Store (with bitcode enabled). The IPA is about 200 mb. On iTunes Connect, it shows my build size to be about 30mb for each device (which I was very happy to see). But when I added the…
batman
  • 5,022
  • 11
  • 52
  • 82
7
votes
2 answers

ld: -bundle and -bitcode_bundle cannot be used together

i'm building llvm/clang 3.7 with bitcode support (-fembed-bitcode). Some modules can't be linked due to error: ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together clang: error: linker command failed with…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
7
votes
1 answer

tvos: iTunesConnect Validation Fails for Alamofire Framework: does not contain bitcode

My tvOS App is failing validation after uploading to iTunesConnect for TestFlight distributions. Validation fails with the following message: Invalid Executable - The executable 'MyApp.app/Frameworks/Alamofire.framework/Alamofire' does not contain…
Chris
  • 1,244
  • 1
  • 12
  • 15
7
votes
1 answer

iOS9, bitcode in enterprise app

Please confirm: 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. From Bitcode (iOS, watchOS). It is App Store who compiles and…
Itachi
  • 5,777
  • 2
  • 37
  • 69
7
votes
2 answers

App Store Team error saying "your app contains bitcode" after application submission

I've never heard of this term bitcode before at all and I don't even know where to start looking around on how to fix this issue. I am using Xcode 7 beta 3 and I've successfully uploaded my app 3 times but every time I upload it, it would change…
Cyril
  • 2,783
  • 1
  • 24
  • 35
6
votes
2 answers

iOS build failed with `ld: bitcode bundle could not be generated`

I have following error when building iOS with CodeMagic. Running Xcode build... Xcode archive done. 14.3s Failed to build iOS app Error output from Xcode build: ↳ …
dhshtmdgml
  • 61
  • 1
  • 4
6
votes
1 answer

Build error: Flutter was built without full bitcode

Getting this error when building the project. All targets and pods have enable bitcode set to yes. ld: bitcode bundle could not be generated because '...app/ios/Flutter/Flutter.framework/Flutter' was built without full bitcode. All frameworks and…
david72
  • 7,151
  • 3
  • 37
  • 59
6
votes
1 answer

Does bitcode support weak linking third party frameworks?

Question stated simply in title. Here is my setup: Building a dynamic framework that optionally links (weak link) to GoogleInteractiveMediaAds.framework. For apps that use my framework, GoogleInteractiveMediaAds is an optional dependency, and the…
Matt.M
  • 1,039
  • 3
  • 14
  • 21
6
votes
0 answers

Xcode build enables BITCODE for a framework only on Device but not on Simulator

I have 'Enable Bitcode' set to YES in Build Settings, and have also tried setting 'fembed-bitcode' in 'Custom Compiler Flags'. When I build the project with the 'Device' selected, and try the command from command line otool -l…
Naishta
  • 11,885
  • 4
  • 72
  • 54
6
votes
0 answers

Bitcode bundle could not be generated because 'PermissionScope.framework’ was built without full bitcode

I added this PermissionScope.framework in my project and tried to archive the project but it shows following error. bitcode bundle could not be generated because 'AppPath/PermissionScope.framework/PermissionScope' was built without full bitcode.…
Sumeet Purohit
  • 657
  • 1
  • 7
  • 16