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

Tools to control, edit, or emit the LC_UUID of a dylib?

I'm producing dylibs with embedded bitcode and using the -bitcode-symbol-map flag to specify an output directory where files of the form UUID.bcsymbolmap get produced. I'd like to teach my build system about those bcsymbolmap files so I can install…
acm
  • 12,183
  • 5
  • 39
  • 68
0
votes
1 answer

Enable bitcode not in build options

With XCode 9.2, I am getting the ld error: ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together However my Build Options do not contain any entry for Enable Bitcode, and when I try to find it via the search bar…
Jonathan Starr
  • 236
  • 4
  • 15
0
votes
1 answer

Enable Bitcode is not setting to Yes after upgrading watchOS 1 to watchOS4 in Xcode 9.1

I got this mail from Apple when I tried to submit build after upgrading watchOS. Bitcode was not enabled in the whole app before. Dear developer, We have discovered one or more issues with your recent delivery for "event****". To process your…
AG.29
  • 230
  • 1
  • 20
0
votes
1 answer

How to check the bitcode type of xx.Framework/xx.lib is `-fembed-bitcode` or `-fembed-bitcode-marker`

I use xcodebuild to build a framework, and I want to find a way to check the bitcode type is -fembed-bitcode or -fembed-bitcode-marker. As you know, when bitcode type is -fembed-bitcode, the framework is full bitcode supported.
YorkFish
  • 77
  • 7
0
votes
2 answers

Creating iOS Framework for device and Universal configuration with bitcode enable and bitcode disable from Command Line terminal

#!/bin/sh UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal # make sure the output directory exists mkdir -p "${UNIVERSAL_OUTPUTFOLDER}" # Step 1. Build Device and Simulator versions xcodebuild -target "${PROJECT_NAME}"…
Priya
  • 199
  • 2
  • 16
0
votes
0 answers

Xcode 9 export xcarchive to IPA gives crashess xcode

In Xcode9 when I try to export xcarchive with compileBitcode it crashes and shows me the following error { code = 0; description = "Failed to verify bitcode in XXXX.framework/XXXXX:\nerror: Platform iPhoneSimulator is not…
hariszaman
  • 8,202
  • 2
  • 40
  • 59
0
votes
2 answers

Difficulty understanding the asymmetry in compatibility between LLVM text IR vs binary representation across versions

Whilst reading through a variety of articles about LLVM and its own documentation I've seen references to a property I find strange concerning the backwards compatibility of its IR. Much of the documentation concerning the IR mentions that it is…
Culex
  • 300
  • 1
  • 9
0
votes
2 answers

Xcode building while device is connected but not archiving

I am trying to build the project using this as basis : GitHub code but it is giving me error when i am trying to archive the project, while running it directly on device is okay. If i turn bitcode to off it makes the build but exit with some error…
Hadi
  • 307
  • 6
  • 20
0
votes
1 answer

linker command failed with exit code 1 in old source code

I have an old project that was developed few years ago. Now when I compile it in latest Xcode 8.3.1 than its giving me some errors. I also googled it but didn't get success. Here is the screenshot of logs so any help would be highly appreciated.
mwaqas01
  • 192
  • 3
  • 11
0
votes
0 answers

Generate LLVM bitcode for android aosp

Would anyone please give me a pointer that how can I generate LLVM bitcode for Android aosp? I have changed the following in the build/core/clang/clear_vars.mk: LOCAL_CLANG_CFLAGS:=-emit-llvm -S LOCAL_CLANG_CPPFLAGS:=-emit-llvm -S…
user299012
  • 41
  • 2
  • 6
0
votes
1 answer

ParseUI ... does not contain bitcode

Once I seem to have got rid of all the syntax errors, while converting my project to Swift 3.0. I now hit this one: ld: '/Users/......./ParseUI.framework/ParseUI(PFLogInViewController.o)' does not contain bitcode. You must rebuild it with…
Michel
  • 10,303
  • 17
  • 82
  • 179
0
votes
1 answer

Using objective-c to build a cisco jabber client,but error message pop up:"does not contain bitcode"

I download JabberGuest SDK for iOS, and follow the https://developer.cisco.com/site/jabber-guestsdk/learn/tutorials/v10_6_9/#steps28 this guild. I am trying to create a new demo application using storyboards by using the…
Kaya Zhou
  • 13
  • 5
0
votes
0 answers

ld: library not found for -lSupport-bitcode

I am not able to find why is this happening. Searched but no related issues found. ld: library not found for -lSupport-bitcode clang: error: linker command failed with exit code 1 (use -v to see invocation) Message while building gives Link error…
coreDeviOS
  • 1,468
  • 2
  • 14
  • 27
0
votes
0 answers

Static lib that can be archived with bitcode enabled or disabled

I'm building a static lib for iOS, I know how to add bitcode support to a static lib with the -fembed-bitcode, but then the static library seems can only either build with bitcode enabled or bitcode disabled, is there anyway to support both of this…
Tj3n
  • 9,837
  • 2
  • 24
  • 35
0
votes
1 answer

How to use otool to check if bitcode is enabled

I am playing around with otool now for hour, but I didn't figure out how to get infos, if a binary is bitcode enabled. It tried the following: First I build a simple iOS app and run: otool -arch arm64 -l testApp1 | grep bitcode After that I…
patrickS
  • 3,590
  • 4
  • 29
  • 40