Platform:macOS
| On this wiki | Facts · Code · Notes · Topics |
|---|
Apple's desktop OS (formerly OS X, Mac OS X, NeXTSTEP lineage): Mach-O executables in .app bundles, Objective-C and Swift runtimes, code signing, system libraries in the dyld shared cache.
Overview
Program files are Format:Mach-O (thin or fat/universal; arm64, arm64e and x86_64). System libraries are not separate files on current releases but live in the Format:Dyld shared cache. Property lists: Format:Property list (binary bplist00). Objective-C and Swift metadata sections: Technique:Objective-C runtime metadata and Technique:Swift metadata sections. Code signing: Format:Mach-O/Code signature.
Application bundle layout
Name.app/Contents/Info.plist, Contents/MacOS/<CFBundleExecutable> (the Mach-O), Contents/Resources/, Contents/Frameworks/*.framework, Contents/PlugIns/, Contents/_CodeSignature/CodeResources (plist of file hashes). A framework bundle is X.framework/Versions/A/X with symlinks Versions/Current and X. The Info.plist keys CFBundleExecutable, CFBundleIdentifier and LSMinimumSystemVersion identify the main binary and OS floor.
Related
Platform:iOS shares the kernel lineage, Mach-O and the runtimes; its bundles are flat.