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 resulting prelinked file does not contain bitcode.
The prelinking command and options emitted by Xcode looks like this:
The documentation for the bitcode_bundle option indicates that it "requires all the object files, static libraries and user frameworks/dylibs contain bit-code". I have used otool to verify that all of the constituent files contain bitcode.
Prelinking any single object file WILL result in the final prelinked file containing bitcode. But even when only two object files are linked, the resulting prelinked file does NOT contain bitcode.
No errors are raised or logged the by the ld command, even when I test it directly from the command line, separately from Xcode.
I'm stumped. And any help or suggestions would be appreciated.
In doing so, the resulting prelinked file does not contain bitcode.
The prelinking command and options emitted by Xcode looks like this:
Code Block ld -r -arch arm64 -bitcode_bundle -bitcode_verify -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk a.o b.o ... x.a y.a -o libABC-arm64-master.o
The documentation for the bitcode_bundle option indicates that it "requires all the object files, static libraries and user frameworks/dylibs contain bit-code". I have used otool to verify that all of the constituent files contain bitcode.
Prelinking any single object file WILL result in the final prelinked file containing bitcode. But even when only two object files are linked, the resulting prelinked file does NOT contain bitcode.
No errors are raised or logged the by the ld command, even when I test it directly from the command line, separately from Xcode.
I'm stumped. And any help or suggestions would be appreciated.