From what I understood, bitcode allows to generate binaries with an intermediary binary format. So it is the step before compiling to an ARM or x64 architecture.
It is possible to create "real" .framework
file for iOS since iOS 8. However, framework files are compiled for only one architecture by default (emulator, iPhone). When one wants to distribute a .framework
file, it is better to provide a file compatible with the iOS emulator and also deployable to an iPhone. Different examples of scripts can be found to create such a fat file using lipo
.
However, would it be possible to only distribute a .framework
compiled as bitcode without having to create a fat file with different architectures?
Unfortunately, even with bitcode enabled for my .framework
:
- different files are created by default according to the targeted architecture
- even if the "archive" menu seems to be enabled for a framework target, I cannot find the result, even in my Organizer view
Do I misunderstand something in the concept of bitcode, or do I miss something?