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.
313
questions
0
votes
1
answer
32
views
All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file
I'm having troubles when Archiving my React Native iOS app.
When I run the app on simulator or my iPhone everything works fine. But when I try to archive my app to publish it on TestFlight the archive ...
-1
votes
0
answers
33
views
ITMS-90562: Invalid Bundle - Bitcode failed to compile for your watchOS binary
I have enabled Bitcode to generate dsym files to see crash reports. When I am selecting Bitcode for generating ipa file , getting rejection from apple and getting this mail
ITMS-90562: Invalid Bundle -...
0
votes
1
answer
21
views
Get entry point of llvm::module
I've parsed a bitcode file with llvm::parseBitcodeFile and I've got the llvm::Module, I can iterate over the functions of the module:
std::unique_ptr<llvm::Module>& M = *parsed;
for(auto&...
0
votes
0
answers
17
views
Xcode won't generate bitcode section
im using xcode 13.2.1, MacOs Monterey version 12.2 (M1).
Im trying to compile my app with bitcode using xcode.
I have Bitcode-Enable = yes in both project and target.
I checked the build log and I ...
0
votes
0
answers
54
views
pod version 1.10.1 causes bitcode error for pod framework
Error log : '/Users/vivek/Library/Developer/Xcode/DerivedData/Demo-WORKSPACE-gndiytqkskvboveiwrfcbnyuvpgm/Build/Products/Debug-iphoneos/AFNetworking/AFNetworking.framework/AFNetworking' does not ...
17
votes
5
answers
3k
views
Xcode 14 deprecates bitcode - but why?
Xcode 14 Beta release notes are out, all thanks to the annual WWDC.
And alas, the Bitcode is now deprecated, and you'll get a warning message if you attempt to enable it.
And I was wondering, why has ...
0
votes
1
answer
128
views
Lift x64 Windows executable to LLVM bitcode and then compile back to x32 one?
So my idea is to "lift" 64-bits Windows executable to LLVM bitcode (or whatever is higher than assembly) and then compile it back to 32-bit executable.
I found that RetDec and McSema can ...
0
votes
0
answers
95
views
Bitcode with Optional Framework xCode 13.2.1
I have written framework A with bitcode enabled. It's having couple of dependency frameworks. I have marked 1 framework as optional which means my main application may or may not have this optional ...
1
vote
1
answer
696
views
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)...
1
vote
1
answer
95
views
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 ...
0
votes
1
answer
23
views
What is the source of Xcode build settings defaults?
I have two Xcode projects. Neither of them have custom ENABLE_BITCODE setting .pbxproj file. But in one of them it's set by default to YES and in another one it's set to NO.
If I enable Customized ...
0
votes
0
answers
39
views
Modify a bitcode enabled IPA to load a framework or dylib
I have only a bitcode enabled IPA from a user and I need to modify the IPA such that it will load a framework or dylib and execute code from that dylib. Articles I read online talk about importing ...
0
votes
1
answer
63
views
How to link the bitcodes of PostgreSQL
I want to run llvm-slicer (source) for PostgreSQL main executable file (i.e., PG_ROOT/src/backend/postgres) to carry backward slicing on PostgreSQL.
llvm-slicer runs on top of bitcode (.bc file). I ...
4
votes
2
answers
2k
views
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 ...
2
votes
0
answers
154
views
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 ...
1
vote
1
answer
55
views
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-...
0
votes
0
answers
65
views
Define external c functions (dlopen) in LLVM Pass
I am trying to insert a call to dlopen in my LLVM Pass when processing bitcode files
The function signature for dlopen (based on https://man7.org/linux/man-pages/man3/dlopen.3.html) is
void *dlopen(...
5
votes
1
answer
506
views
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 enabled,
https://webrtc....
1
vote
1
answer
171
views
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 ...
0
votes
2
answers
158
views
WatchOS App for React-Native IOS app is not uploading to App Store Connect (ITMS-90496: Invalid Executable)
We have developed a Watch App for our React-Native IOS app using SwiftUI. After the the integrations are completed, we've tried to upload the build to TestFlight for testing purposes. In the process, ...
0
votes
1
answer
74
views
Is it possible to find the LLVM version from textual LLVM IR .ll file?
I have several .ll files containing LLVM IR code in textual form. I want to filter the files depending on their LLVM version for example I would like to find all the files that use LLVM version 3-7.
...
1
vote
0
answers
32
views
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 ...
2
votes
0
answers
39
views
Firework ios sdk Archiving error with bicode enabled
i am getting error while trying to Archive my app with Bitcode enable, i am using Firework library which is causing the issue, tried some stackoverflow ideas but didn't help, any ideas?
HERE are some ...
0
votes
1
answer
73
views
Jit compiled LLVM IR can't call C functions on FreeBSD (but can on MacOS)
I suspect that this will end up linker related, but looking for any suggestions.
Have a simple C++ code that loads an llvm IR file as a module, compiles it and executes a function from that module. IR ...
0
votes
0
answers
267
views
Xcode Bitcode issue when archiving
I have pod in my project called GoogleWebRTC and apparently it is not build Bitcode enabled.
Though I do disable Bitcode for it in my Podfile which can be seen below, it does not let me to archive the ...
1
vote
0
answers
37
views
Affect on existing features in the app when Bitcode enabled vs disabled
Does enabling or disabling bitcode would affect the existing features of the app in any way ?
For eg: If I choose to untick the option "Rebuild from bitcode" while sharing the ipa to QA team ...
7
votes
1
answer
340
views
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
'/...
0
votes
0
answers
92
views
Does Apple generate new DSYMs for apps with Bitcode enabled?
If I upload my app to App Store Connect with Bitcode enabled (and include symbols) does Apple rebuild and generate new DSYMs?
I'm automating my deployments and automatically upload DSYMs to Firebase ...
0
votes
0
answers
132
views
iOS - Bitcode issue with framework inside another framework
I have two frameworks(Mach-O type is Dynamic Library) called A and B. Framework B is dependent on A(B uses several methods and classes of A). So I imported A under the frameworks and libraries section ...
1
vote
0
answers
471
views
Swift package has bitcode disabled
I created a really simple Swift package, that contain only a few Objective-C source files, but when I try to build another project that it, it fail compiling because:
ld: bitcode bundle could not be ...
1
vote
0
answers
191
views
Getting Crashes but showing wrong/old Version number in Firebase Crashlytics
Bitcode: No
Firebase Crashlytics: 8.5.0 (Latest)
I integrated the Firebase Crashlytics in my app on version 3.1.8. On the testing device, it reports me correctly. but when I see the report of online ...
5
votes
3
answers
1k
views
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=.'
...
6
votes
1
answer
854
views
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 ...
1
vote
0
answers
120
views
Getting a persistent ID for an LLVM BasicBlock
I'm looking for a way -- using the LLVM API -- to obtain an identifier for a BasicBlock which I can use to look up (again via the API) the same block later.
Whatever this ID is, I need it to be "...
5
votes
0
answers
534
views
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 ...
0
votes
1
answer
325
views
Can't symbolicate crash logs
I experiencing a crash in my app:
Thread 0 name:
Thread 0 Crashed:
0 LogoQuizAC 0x0000000104705218 __hidden#563_ + 0 (__hidden#957_:0)
1 LogoQuizAC ...
1
vote
0
answers
195
views
Bitcode issue when building a Universal (FAT) iOS Framework which has external dependancies integrated via a podspec
My goal is to build a universal framework that can be use in iOS devices and simulators. I want to be able to distribute this framework using cocoapods which also I was able to do successfully.
My ...
0
votes
0
answers
206
views
Compiling CGAL with Emscripten for Web
I am trying to compile a CGAL application on the web using emscripten and web assembly. According to the emscripten documentation, external libraries must be compiled to bitcode first. I am not sure ...
0
votes
1
answer
246
views
Flutter webview error bitcode bundle could not be generated
I'm making a flutter application connected to an e-commerce website. I have already published it for android. When building it for testing on Xcode everything worked fine but when I tried to archive ...
7
votes
1
answer
1k
views
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 ...
2
votes
1
answer
693
views
Is it possible to enable bitcode for my xcframework library using Swift 5.1 toolchain
Having these flags enabled
ENABLE_BITCODE=YES
BITCODE_GENERATION_MODE=bitcode
OTHER_C_FLAGS=-fembed-bitcode
An .xarchive is successfully built which is then packaged using xcodebuild into a ...
1
vote
2
answers
1k
views
iOS - Archiving "bitcode bundle" could not be generated - Flutter
I am facing this issue and unable to release the app in Appstore. App is already in App Store and i want to release a new version now. This issue is in my latest build . I am able to build the product ...
3
votes
1
answer
3k
views
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 ...
1
vote
1
answer
286
views
Alamofire 5.2.2 TestFlight watchOS build crashes on Apple Watch Series 3 devices (32-bit) (Bitcode related?)
I have a WatchOS Application on TestFlight that is crashing on startup on Apple Watch Series 3 devices (32-bit). It works flawlessly on Simulators (Xcode 11.7) and Apple Watch Series 4.
I am using ...
0
votes
1
answer
128
views
Xcode: bitcode not included when doing Single-object Prelink
I'm using Xcode to prelink a collection of object files (*.o) and static libraries (*.a), all containing bitcode, into a single static library using Single-Object Prelinking.
In doing so, the ...
0
votes
1
answer
93
views
Missing Bitcode while Archiving
While archiving build I got this error, I tried clearing derived data , cleaned Xcode still same issue
1
vote
2
answers
3k
views
How to make the LLVM Opt tool to report which analysis passes successfully used by each optimization -O1, -O2, etc?
I wonder if it is possible to make the LLVM opt tool to report in detail which optimization passes are successfully used during each optimization level like -O1,-O2, etc.
For example, here is the ...
1
vote
0
answers
151
views
iOS cronet ld error with enable_ios_bitcode flag
I build iOS Cronet with flag 'enable_ios_bitcode=true'. However, I meet the error below:
ld: section __bundle (address=0x003F8000, size=1136419986) would make the output executable exceed available ...
0
votes
1
answer
445
views
Clang: compile IR, C files and apply opt in one line
I'm building an IR level Pass for LLVM which instrument the functions with calls to my runtime library.
So far I have used the following lines to compile any C file with my pass and link it with the ...
0
votes
1
answer
913
views
How to extract the __bitcode/__bundle section from a MachO binary
For a binary with embedded bitcode (i.e., compiled with -fembed-bitcode). How can i just extract that section such that I can use that bitcode file like any other bitcode file e.g, run opt or llvm-dis
...