BITCODE_STRIP(1)
πΈ NAME πΈ
okay so you're reading BITCODE_STRIP(1) from the General Commands Manual, and bestie, it's literally about bitcode_strip β remove or leave the bitcode segment in a Mach-O file β¨
β¨ SYNOPSIS β¨
bitcode_strip input [ -r | -m | -l ] [ -v ] [ -keep_cs ] -o output
π DESCRIPTION π
bitcode_strip strips Mach-O files and Universal files containing LLVM bitcode β either by removing the bitcode, or by removing the native executable code. iconic behavior, no cap π
If the Mach-O file β or a specific architecture inside a Universal file β does not have a bitcode segment, it's left essentially unchanged. like, it just vibes through mostly untouched π¦
β οΈ heads up: by default, bitcode_strip will remove the code signature load commands from the output file, because the code signature is no longer valid. periodt.
π OPTIONS π
-rβ removes the__LLVMbitcode segment entirely. gone, bye π-mβ removes the bitcode from the__LLVMsegment, leaving behind a marker. it's giving βevidence remainsβ energy π₯-lβ removes all of the native executable code, leaving the LLVM bitcode behind. in this case,bitcode_striptakes care to preserve the(__TEXT,__info_plist)section while removing the rest of the__TEXTsegment. main character section energy fr fr π-vβ prints the arguments passed to other tools run bybitcode_stripwhen processing bitcode files. lowkey a little peek behind the curtain π«Ά-keep_csβ preserves the codesign load commands in the output binary, even though the code signature is no longer valid. this can be useful when usingcodesign(1) -preserve-metadatato resign the binary. so specific, so helpful π-o outputβ specifies the output file asoutput. yes, literally that path bestie β¨inputβ specifies the input Mach-O or Universal file to operate on. the chosen one π
π¦ SEE ALSO π¦
codesign(1)otool(1)
with π from Apple, Inc., dated June 23, 2020 β mwah, go slay your Mach-O files bestie π π
π¦ where this page comes from
- nixpkgs unstable: cctools 1010.6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms