Wednesday, December 13, 2023
HomeiOS Developmentxcode - macOS/iOS Can not create a bundle with embedded bitcode

xcode – macOS/iOS Can not create a bundle with embedded bitcode


I have to create a bundle with embedded bitcode, for that objective I’ve all of the dependencies compiled with embedded bitcode* and I used to be anticipating that producing the ultimate construct could be a matter of including the correct -Xlinker -bitcode_bundle and/or -fembed-bitcode to clang, however the closing construct doesn’t have any bitcode in it.

That is the command I am utilizing (eradicating many paths to simplify):

/Functions/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -reproducible -target arm64-apple-ios11.0 -isysroot /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk -O0 -filelist … -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -L/Functions/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker …Runner.swiftmodule -fembed-bitcode -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker …Runner_dependency_info.dat -o …/Merchandise/Debug-iphoneos/Runner.app/Runner -Wl,-bitcode_bundle -Xlinker -bitcode_bundle

However Runner.app/Runner doesn’t include any bitcode, what could be the correct strategy to embedded bitcode?

*Working otool -l on the *.o recordsdata present the __LLVM segments in it, additionally failing so as to add the bitcode within the dependencies triggers the error <...> doesn't include bitcode. It's essential to rebuild it with bitcode enabled so the bitcode should be there.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments