Tagged articles
Mach-O
26 articles · Page 1 of 1
The swift-section tool reads __swift5_ sections in iOS Mach‑O binaries, parses Swift ABI metadata, demangles symbols, and generates a complete Swift interface file, revealing private framework designs such as DesignLibrary without accessing source code, a valuable capability for security researchers.
Mach-OSwift ABIbinary analysis
0 likes · 4 min read

The article demonstrates how detailed Mach‑O and LinkMap analysis combined with custom CocoaPods hooks, Swift‑syntax refactoring, and indexed symbol mapping can systematically shrink an iOS app’s bundle—from 289.3 MB to 259.3 MB—while cutting CI build time and simplifying debugging.
Bundle OptimizationCocoaPodsLinkMap
0 likes · 19 min read

This guide explains why Intel‑based macOS libraries need architecture conversion for Apple Silicon simulators, compares XCFramework and Rosetta solutions, and provides a step‑by‑step method using lipo, ar, and custom Swift code to replace load commands and rebuild arm64 binaries for simulator use.
Mach-OSimulatorXCFramework
0 likes · 9 min read

Mach‑O is the macOS and iOS binary format whose header, load commands, and __TEXT/__DATA sections define executable, library, and symbol information, enabling developers to understand loading, linking, and startup performance, and to implement custom initialization hooks or modular launch tasks via custom data sections.
Binary FormatClangMach-O
0 likes · 10 min read

This article explains how to analyze Link Map files and apply code‑level optimizations—such as removing unused classes, modules, methods, duplicate code, and AB‑test branches—to significantly reduce the binary size of Baidu’s iOS app, providing scripts, commands, and practical tips for each step.
Link MapMach-OPackage Size
0 likes · 18 min read

The article explains how Baidu App reduces its iOS package size by analyzing Link Map files and applying six code‑optimization techniques—unused class and module slimming, unused method pruning with LLVM, duplicate‑code detection, utility‑method consolidation, and A/B‑test hardening—yielding up to 8 MB of savings.
AB TestingLink MapMach-O
0 likes · 15 min read

The article explains how Baidu’s iOS app reduces package size by examining Mach‑O binaries with tools like otool and MachOView, then applying Python scripts to locate oversized assets, eliminate unused configuration files, and deduplicate resources, achieving a 12 MB reduction and a repeatable optimization pipeline.
Mach-OResource Optimizationbinary analysis
0 likes · 18 min read

This article explains how Baidu's iOS app analyzes Mach‑O binaries and applies systematic resource‑optimization techniques—including big‑resource detection, unused config removal, and duplicate asset elimination—to shrink package size by over a dozen megabytes.
Mach-OResource OptimizationiOS
0 likes · 20 min read


58 TechJan 5, 2023 · Mobile Development
This article presents practical methods for reducing iOS app bundle size by detecting and removing unused Objective‑C/Swift classes, redundant resources, and applying binary optimizations such as segment migration and link‑time optimization, illustrated with real‑world experience from 58.com.
Mach-OSWIFTUnused Code Detection
0 likes · 23 min read

This article details HuoLala's comprehensive iOS app slimming process—covering background metrics, Apple size limits, App Thinning, compiler and resource optimizations, Mach‑O analysis, framework handling, coding guidelines, and CI safeguards—to help developers reduce installation size, improve launch speed, and boost user conversion rates.
App ThinningMach-OResource Compression
0 likes · 24 min read

This article introduces the Mach-O executable format, explains how its structure can be leveraged to attribute dynamic and static libraries at runtime and during build, and presents two practical projects—library attribution and fast API scanning—complete with implementation details and code snippets.
API scanningMach-Obinary analysis
0 likes · 15 min read


58 TechJul 7, 2022 · Mobile Development
WBBlades3.0 is a visualized iOS development toolkit that offers unused class detection for Objective‑C and Swift, fast package‑size analysis of static libraries, point‑to‑point crash‑log parsing with symbol restoration, and static‑library dependency inspection, all designed to improve developer efficiency.
Mach-Ocrash log parsingiOS
0 likes · 7 min read

This article clarifies three frequent misunderstandings about iOS15+ dynamic linking—namely the encoding of b/bl instructions, the need for rebase/bind in __TEXT segments, and the mismatch between Mach‑O segment VM size and file size—by explaining the underlying ARM64 architecture, PIC concepts, and providing concrete dyld tool examples.
Mach-Oassemblybinary analysis
0 likes · 11 min read

Fixup chain, introduced in iOS 15, replaces the previous compressed‑byte‑stream rebase/bind format with a linked‑list style structure that stores dynamic‑link information more compactly, improves space locality, reduces binary size, and speeds up app launch by allowing a single pass rebase and bind process.
BINDMach-Odynamic linking
0 likes · 31 min read


58 TechOct 28, 2021 · Mobile Development
This article explains how to detect and remove unused code in mixed Swift and Objective‑C iOS applications by parsing Mach‑O files, analyzing class metadata, and leveraging AccessFunction calls, while discussing the challenges, implementation details of the WBBlades tool, and practical usage steps.
Mach-OObjective-C++SWIFT
0 likes · 15 min read

This article explains the internal structure of Objective‑C categories, how they are represented as structs in the runtime, the process by which the Mach‑O loader discovers and attaches them, and the distinct execution order of their +load and +initialize methods.
CategoryInitialize MethodLoad Method
0 likes · 17 min read

This article explains how to use the otool command to parse Mach-O sections, extract __objc_classlist and __objc_classrefs, compute their differences, and locate unused Objective‑C classes and methods for iOS app size optimization, providing sample Objective‑C code and detailed implementation steps.
Mach-Obinary analysisiOS
0 likes · 22 min read


ByteFEMar 18, 2021 · Mobile Development
This article details ByteDance's iOS team approaches to reducing app package size—including resource compression, Assets.car merging, text file zipping, and Mach‑O binary optimizations such as -Oz, LTO, exported symbols, property dynamic handling, __TEXT segment migration, and binary segment compression—resulting in multi‑megabyte savings and improved download performance.
Binary CompressionMach-Oapp size optimization
0 likes · 14 min read


ITPUBJan 14, 2021 · Fundamentals
This article explores Swift’s binary representation by comparing it with Objective‑C, demonstrating runtime dynamic method invocation, dissecting Mach‑O sections such as __objc_classlist and __swift5_types, and revealing how Swift classes store their metadata and VTables.
Dynamic InvocationMach-OObjective-C++
0 likes · 16 min read

This article explains the fundamentals of hooking on iOS, covering Method Swizzle and Facebook's fishhook, detailing the Mach‑O file structure, PIC technique, and providing complete source code examples that demonstrate how to replace system functions such as NSLog at runtime.
FishhookMach-Ohook
0 likes · 22 min read

This article examines Swift's binary representation in Mach-O files, compares it with Objective‑C storage, demonstrates runtime dynamic method calls, and analyzes class metadata, VTable construction, and related flags to reveal how Swift functions are located and invoked at runtime.
Dynamic InvocationMach-ORuntime
0 likes · 16 min read


58 TechJun 1, 2020 · Mobile Development
The 58 client package size detection live series reviewed two open‑source tools—Zucker for Android modular size analysis and a Mach‑O‑based performance suite for iOS—explaining their principles, implementation, and how they enable non‑intrusive monitoring and optimization of app package sizes.
AndroidMach-OPackage Size
0 likes · 3 min read


58 TechMar 18, 2020 · Mobile Development
WBBlades is an open‑source iOS toolset that parses Mach‑O files to provide size analysis, high‑precision unused‑class detection, and crash‑log symbolization without requiring symbol tables, offering both a macOS GUI and command‑line interface for developers to optimize and debug their apps.
App Size AnalysisCrash SymbolizationMach-O
0 likes · 12 min read


58 TechNov 1, 2019 · Mobile Development
This article describes how 58.com analyzes the code and resource size of each business component in its iOS app by parsing linkmap files and static libraries, builds version‑wise statistics, and compares component volume changes across releases to support efficient parallel development and app slimming.
App SizeLinkMapMach-O
0 likes · 22 min read

Meituan’s iOS team introduced the CocoaPods sub‑command zsource, which extracts source‑file paths embedded in binary components’ DWARF data and automatically fetches the corresponding code, letting developers instantly replace a binary with its source for fast, source‑level debugging without rebuilding the whole project.
Binary DebuggingCocoaPodsComponentization
0 likes · 11 min read

This article explains why iOS crash logs are unreadable without symbolication, introduces three symbolication approaches—Xcode's symbolicatecrash, the atos/atosl tools, and dSYM‑based parsing—details the dSYM file structure, Mach‑O headers, load commands, data segments, and how to extract and demangle symbols for effective crash debugging.
Mach-Oatoslcrash
0 likes · 10 min read
