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
4
votes
0 answers

Implications of migrating an iOS app to App Thinning and Bitcode?

I'm trying to update a legacy application to take advantage of App Thinning and bitcode. However since each device now has its own custom build I have two concerns on which I haven't been able to find any information online : How do I update my…
coderboy
  • 193
  • 5
4
votes
1 answer

Building with cocoa touch framework

Is there any way how to have two versions of one framework in xcode, one build for simulator, one built for production and use the one in a project based on what am I building for? I have problems with making a fat framework for tvOS app (but this…
Ondrej Rafaj
  • 4,342
  • 8
  • 42
  • 65
4
votes
1 answer

Google+ sign in for iOS9

We have an app that uses Google+ sign in (version 1.7.1) We are upgrading to iOS 9 and face some issues. Looking in google docs we can not find any explicit reference to those issues + we see that the library was not updated lately. Did google…
shannoga
  • 19,649
  • 20
  • 104
  • 169
4
votes
1 answer

How to generate LLVM bitcode

I want to generate bitcode file (.bc) as it is written in documentation: hello.c #include int main() { printf("hello world\n"); return 0; } then % clang -O3 -emit-llvm hello.c -c -o hello.bc and % lli hello.bc to run the code, but…
ashim
  • 24,380
  • 29
  • 72
  • 96
3
votes
1 answer

Enable bitcode with Xcode 13.3 -13.4 when project uses async/await and targets iOS 14

My app uses a concurrency framework and targets iOS 14 and all toggles with Enable Bitcode in Build Settings are set to YES, after compiling it shows the following warnings (using SPM for dependencies): ld: warning: all bitcode will be dropped…
3
votes
0 answers

Bitcode recompilation of WebRTC targeting tvOS

I am trying to recompile the bitcode of my tvOS app, including the bundled WebRTC framework, for the purpose of being able to successfully submit the app to the App Store. This same process with the iOS app succeeds. Upon pushing the tvOS app to the…
senojsitruc
  • 370
  • 2
  • 11
3
votes
1 answer

Invalid bitcode version for archiving iOS app

When I try to Archive my app in Xcode 11.2.1 it returns the error: I have previously worked on the app with the beta version of Xcode 13. I have tried to turn Enable Bitcode to No but that did not fix the problem. I get an error in the Stripe…
Marco
  • 53
  • 1
  • 6
3
votes
0 answers

iOS Framework with Bitcode enabled with Xcode 11

What I am trying to do: I am trying to build a cocoapods framework in xcode11 and then use it in an iOS App. What I have tried: Set Enable Bitcode to yes Before building the framework, I have set Other C flags to -fembed-bitcode Setting to…
davidOhara
  • 1,008
  • 5
  • 17
  • 39
3
votes
0 answers

Enabling Bitcode in dynamic framework

I am currently building a dynamic framework for iOS and tvOS. Therefor I lipo simulator and device binaries to one fat library via script. Bitcode is enabled in Build Settings, as you can see here: I verified the library after creation with otool.…
davidOhara
  • 1,008
  • 5
  • 17
  • 39
3
votes
1 answer

Using Clang Static Analyzer directly on bitcode files

I wanted to know if clang analyzer can be made to work directly on bitcode (*.bc) files? Following this post about identification of integer variables that can only have the values 0 or 1, I've started exploring the clang analyzer, and it gave me…
OrenIshShalom
  • 5,974
  • 9
  • 37
  • 87
3
votes
1 answer

Option -fembed-bitcode disappear when linking shared library

I try to compile several open-source libraries for iOS as shared libraries with bitcode. I've added flag -fembed-bitcode into CFLAGS and LDFLAGS. Compilation completes normally but some of resulting libraries (curl for example) has no bitcode in…
Alexander Ushakov
  • 5,139
  • 3
  • 27
  • 50
3
votes
1 answer

iOS Crashlytics crash log shows _hidden even after upload the bitcode dSYM to fabric

I've been investigating the crash in our app for quite a while, and I still can't figure out why Crashlytics cannot symbolicate some of the crashes (3 to be specific). These are actually the current major crashes of the app and we are desperately…
congsun
  • 144
  • 5
3
votes
2 answers

Bitcode disabled on Carthage dependencies

Scenario My project (codebase shared for iOS/watchOS/tvOS ) has build settings with ENABLE_BITCODE = YES and takes advantage of fundamental libraries which are not yet supporting bitcode, although quoting Apple documentation in App Thinning Bitcode…
mugx
  • 9,869
  • 3
  • 43
  • 55
3
votes
1 answer

Bitcode WatchOS3 - how to generate

I am attempting to upload a watchOS3 app to the apple store, however I received a rejection (from apple) thats similar the below Invalid Executable - The executable 'someWatch Extension' does not contain bitcode. Once these issues have been…
LostJon
  • 2,287
  • 11
  • 20
3
votes
1 answer

tvOS Framework contains incomplete bitcode

I have a project with the following configuration for tvOS: MyApp MyAppFramework MyAppFramework is set to be embedded in MyApp. The app runs fine in debug on the device, but when submitting to the App Store after Archiving I get: ERROR ITMS-90668:…
Chris
  • 2,739
  • 4
  • 29
  • 57