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 in a single binary?
Asked
Active
Viewed 140 times
0

Tj3n
- 9,837
- 2
- 24
- 35
-
Why does it need to be a single binary file? – Droppy Oct 31 '16 at 12:05
-
You can add a static library with embedded bitcode to an app without bitcode. – clemens Oct 31 '16 at 14:00
-
@Droppy it's for easier for integrate since i need to ship it to client – Tj3n Nov 01 '16 at 02:53
-
I doubt it's possible as *fat* libraries use the CPU architecture to determine what version of the binaries to link against and I don't believe it differentiates by "bitcodeness". – Droppy Nov 01 '16 at 07:11
-
@Droppy thanks, it seems like the problem only happen with non bitcode lib with bitcode app, but the other way seems fine like macmoonshine said, just that before i remember it don't, probably remember wrong :D – Tj3n Nov 01 '16 at 07:20