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

Swift "Invalid Mach-O Format" Error

Invalid Mach-O Format I have a Universal Framework which has i386 and x86_64 architectures for iOS Simulator also armv7 and arm64 architectures for iOS Device. It works perfectly in my project. When I submit the application to App Store, I have to…
3
votes
3 answers

Bitcode Auto Recompilation

we are in the final phase of App Store publishing. We could see new feature that added to iTunes connect that is not exist last year when i have published my last app. My question is, If i have not enabled bit code for one of the library used in my…
Gobi M
  • 3,243
  • 5
  • 32
  • 47
3
votes
0 answers

Xcode7 error when submitting app with bitcode enabled

This question was asked before, but none of the answers provide a real solution or an explanation (just workarounds). I am developing a framework (objecting-c) which complied with bitcode enabled. I am using this framework in another App project,…
liorco
  • 1,483
  • 1
  • 9
  • 12
3
votes
1 answer

WatchApp Submission to app store

Invalid Executable - The executable 'xx.app/Watch/watchkitapp.app/PlugIns/watchkitapp Extension.appex/watchkitapp Extension' does not contain bitcode. Getting this error In watchkit extension build settings there is no option for bitcode. Please…
3
votes
1 answer

XCode7: static library with bitcode enabled size?

I've rebuild some static library for arm64 arch that is required for my iOS app with bitcode support (-fembed-bitcode flag) from command-line. Previously without bitcode support generated .a file was about 88 Mb, now it's about 230 Mb. I know…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
3
votes
1 answer

Xcode Linker issues

Im writing to you as I am deeply in need of some assistance. I'm trying to compile an app to my iPhone from Xcode, however, I keep encountering the issue of having this error come up when I press run: ld: warning: directory not found for option…
JeffD
  • 89
  • 9
3
votes
1 answer

Can i still have bitcode disabled for iOS if one or more libraries has bitcode?

Can I still build and publish an iOS application which has bitcode disabled, even if I have one or more libraries which have bitcode? Not all my libraries I depend on support bitcode yet. But I have read on certain forums that you cannot have…
Matt
  • 5,028
  • 2
  • 28
  • 55
3
votes
1 answer

Building C++ static libraries using configure & make with -fembed-bitcode fails to link

I'm rebuilding some open source libraries with -fembed-bitcode for iOS 9, which involves configuring configure to cross-compile using the iPhone SDKs. Everything works fine for C based libraries, but the 2 C++ ones (libprotobuf and libexiv2) I have…
Pol
  • 3,848
  • 1
  • 38
  • 55
3
votes
1 answer

IOS app size doubled after updating frameworks that enable bitcode

In the last month I uploaded two Builds for TestFlight. On ItunesConnect, one has a size of 63MB, while the other is 160MB! To make it worse: It shows 195MB on TestFlight, and regarding other posts, it will be double the size on the App…
CularBytes
  • 9,924
  • 8
  • 76
  • 101
3
votes
5 answers

Xcode 7 'CrashReporter does not contain bitcode' linker error

I am directly linking PLCrashReporter in my iOS app without using any external tool and now when I try to compile it on Xcode 7 I get link error: ld: '.../CrashReporter.framework/CrashReporter(libCrashReporter-iphoneos.a-armv7-master.o)' does…
Fabrizio Bartolomucci
  • 4,948
  • 8
  • 43
  • 75
3
votes
1 answer

Bitcode Enabled - Prepare for iOS 9 (xcode7 beta, iOS 6 support)

I have a static library that support iOS 5 and above, and we're trying to prepare to the upcoming iOS 9. After searching several sources, I couldn't find direct answers to the following: Is bitcode mandatory? What would happen if I'll set Enable…
U_D
  • 711
  • 1
  • 10
  • 18
2
votes
1 answer

bitcode bundle could not be generated because Flipper-DoubleConversion was built without full bitcode

I wanted to build IOS after environmental separation. However, an error occurs when building. this is my error this is my podfile How can i solve this problem? NOTE : I want use bitcode. so I not recommend change bitcode value
hong developer
  • 13,291
  • 4
  • 38
  • 68
2
votes
1 answer

Clang errors about instructions when rebuilding human readable .ll files

I converted some binary bitcode files into human readable form using llvm-dis. When I tried to rebuild those .ll files into the main binary, I will see errors such as clang -cc1 version 13.0.0 (clang-1300.0.29.30) default target…
localacct
  • 611
  • 5
  • 13
2
votes
1 answer

Rebuild opt modified bitcode files using Apple clang

I modified a bitcode enabled IPA using the open source LLVM toolchain's opt and ran my own LLVM pass on the bitcode files. After modifications, I tried to use Apple's LLVM toolchain's clang to rebuild the bitcode files to get the binary but I got…
localacct
  • 611
  • 5
  • 13
2
votes
0 answers

Keep symbols when converting xcarchive to ipa

I am trying to rebuild bitcode files of a binary and during the process, clang displays an error about undefined symbols for architecture arm64 as the application makes use of external frameworks. I noticed that if I provide the Frameworks folder in…
localacct
  • 611
  • 5
  • 13