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.
This article explains how the HLL iOS driver team identified excessive global‑queue usage, thread‑switch overhead, deadlocks and UI‑thread violations, then introduced a priority‑aware queue pool, refined concurrency controls, and built long‑term monitoring to dramatically reduce crashes and improve performance.
To enable encrypted transmission and traffic monitoring across multiple iOS apps with diverse networking frameworks, this article compares several network AOP solutions—including AFNetworking, Moya, custom frameworks, runtime method swizzling, and NSURLProtocol—evaluates their pros and cons, and details the chosen NSURLProtocol-based implementation with plugin architecture.
This article presents a hybrid click‑tracking solution that combines the precision of code‑based instrumentation with the low‑cost advantages of full‑click (auto) tracking, detailing implementation patterns for iOS UIControl subclasses, UITableView delegation, and Flutter widget trees using inheritance and custom gesture wrappers.
The article discusses challenges and solutions for adapting iOS apps to right‑to‑left languages like Arabic, covering UI mirroring, layout adjustments using leading/trailing constraints, image flipping, text alignment and attributed strings, Unicode direction controls, collection view handling, RTL‑aware insets, navigation gestures, number formatting, and in‑app language switching with practical code examples.
This article presents a comprehensive solution for parsing various iOS crash logs—including system logs and Bugly stacks—by automatically matching DSYM symbol files, generating lightweight symbol tables, handling multiple log formats, and correcting abnormal symbols, all packaged in an open‑source macOS tool.
This article explains the concept of locks in iOS, describing their purpose, the actions of acquiring and releasing, common lock types such as spin locks, mutexes, semaphores, and their implementations using OSSpinLock, pthread_mutex, NSCondition, NSLock, recursive locks, and read‑write locks, along with performance considerations and underlying principles.
Baidu’s iOS solution monitors single memory allocations exceeding an 8 MB threshold by intercepting malloc_logger and capturing stack traces with backtrace, merging online user‑scenario data and offline pipelines to identify large‑allocation hotspots, reduce OOM crashes, and give developers actionable debugging insight.
This article analyzes JDHybrid's offline loading architecture for Android and iOS, detailing mechanisms such as direct file loading, request interception, WKURLSchemeHandler, package generation, download tiering, preloading strategies, memory warm‑up, debugging tools, and performance monitoring that together boost first‑screen speed and reduce bandwidth during high‑traffic events.
A low‑overhead monitoring solution for iOS apps resets the global malloc_logger to capture every allocation, filters large allocations exceeding a configurable threshold, records lightweight stack traces using dyld image maps, and sends address‑only data for offline symbolication, enabling developers to identify and fix memory‑heavy code, reducing OOM crashes.
This article explores the challenges of mobile white‑box testing and presents an AOP‑driven solution that injects flow‑recording and replay code suites into Android and iOS apps, detailing technical goals, testability metrics, instrumentation techniques, and practical engineering outcomes.
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.
This article explains how to design and code a hint feature for a 24‑point puzzle app on iOS, covering random number generation, validation of solvable sets, recursive expression search, expression‑to‑string conversion, optimization of parentheses, and provides complete Swift source code with detailed algorithmic explanations.
This article details Huolala's self‑developed H5 offline‑package SDK for iOS, explaining its safe, maintainable architecture, implementation steps, performance optimizations, reliability mechanisms, and measurable benefits such as halving page load time and achieving 100% load success rate.
The Taobao Scan feature was refactored by applying the Responsibility‑Chain, State, and Proxy design patterns, separating view and logic layers, introducing a fluent pipeline API, modular state handling, and a global proxy, which together dramatically improved code maintainability, extensibility, testability, and reduced development risk.
Bilibili migrated its iOS codebase from a fragmented polyrepo to a unified monorepo and adopted Google‑backed Bazel, enabling clear BUILD files, atomic commits, fast parallel and cached builds, reliable dependency resolution, easy Xcode integration via Tulsi, and extensible custom rules for scalable, maintainable development.
This article introduces MMKV‑Kotlin, a Kotlin Multiplatform wrapper for Tencent's high‑performance MMKV key‑value storage, covering its background, simple integration steps, architectural decisions, platform‑specific implementations, comprehensive unit and instrumented testing, and the process of publishing the library to Maven Central.
This comprehensive guide walks through using Apple’s StoreKit2 framework to define products, fetch localized product data, display items, handle purchases, verify transactions, manage receipts, support refunds, differentiate consumables from non‑consumables, and implement auto‑renewable subscriptions in a SwiftUI iOS application.
This article explains how to transform a typical infix arithmetic expression such as "8 - (6 + 4 / 2 - 1) * 2" into a postfix (Reverse Polish) form using Swift, then evaluates the postfix expression step by step with custom Swift functions and also shows a shortcut using NSExpression.
This document details the background, architecture, new precise exposure system, technical challenges, iOS implementation, visualization tools, and achieved results of JD Daojia's mobile data‑tracking platform, highlighting how a three‑layer design and automated validation improve accuracy, reduce development cost, and streamline testing.
This article outlines the background, guiding principles, measurement methods, and concrete optimization techniques—including protocol selection, data reduction, request aggregation, DNS and HTTP/2 improvements, priority handling, and backend tweaks—that together reduced SDK network latency by about 40% and accelerated asset delivery to over 90% within three seconds.
The article reviews Apple’s WWDC 2022 announcements, highlighting Swift’s new concurrency model, actor and distributed‑actor features, SwiftUI’s custom grid layout and charting capabilities, as well as enhanced string handling and built‑in regex support for developers across iOS, iPadOS, macOS and watchOS.
This article provides an in‑depth technical overview of iOS RunLoop, explaining its relationship to threads, event loops, RunLoop modes, sources, timers, observers, and the underlying Mach message mechanisms, while including original source code excerpts for reference.
This article explains how iOS RunLoop can be leveraged for thread keep‑alive, controlled termination, lazy image loading, various lag‑detection techniques, crash protection strategies, and demonstrates its integration within the open‑source Matrix framework, providing concrete Swift and Objective‑C code examples.
Mobile DevelopmentObjective-C++Performance Monitoring
The team built a real‑time debugging workflow for a large Swift iOS app by using Xcode’s Attach to Process feature, restoring the exact source commit, disabling Swift optimizations, configuring LLDB source‑maps for the app and CocoaPods, and ensuring debug symbols so breakpoints work without recompiling.
This article investigates the mismatch between iOS camera preview and captured images in VIN recognition, explains the aspect‑ratio scaling cause, derives compensation formulas, and provides Objective‑C code to adjust crop rectangles for accurate framing.
This article walks through the design and implementation of a voting component featuring a transparent gradient border and gradient‑filled irregular button, covering three solution options, detailed path calculations, CoreGraphics and CoreAnimation techniques, and complete Swift code for drawing and animating the UI.
The article introduces the Fin Line Height Fix Tool, an open‑source solution from NetEase’s Dolphin team that resolves visual fidelity problems caused by inconsistent font heights between design tools and implementation, offering Figma and Sketch plugins plus iOS, Android, and React Native code to ensure pixel‑level line‑height consistency and streamline designer‑developer collaboration.
To ensure consistent user experience across the wide range of Android and iOS devices, Kuaishou’s Y‑tech team designed a dynamic model‑grading framework that evaluates CPU, GPU, NPU, memory and other hardware metrics, then dispatches appropriately sized AI effect models and configurations in real time.
This issue presents five technical articles covering QA contributions in de‑QA projects, methods for evaluating team delivery quality, quality assurance for concurrency using distributed locks, defensive coding practices, and iQIYI's iOS stability testing approach, offering practical insights for software quality improvement.
This article provides a comprehensive guide to analyzing and reducing iOS IPA package size by unpacking the .ipa, examining its internal components, applying Xcode compile and code optimizations, compressing resources, removing unused assets, and establishing monitoring mechanisms to maintain a lean binary.
This article explains the fundamentals of iOS App Extensions, details the WidgetKit framework, shows how to configure single and multiple widgets, describes data sharing, refresh strategies, interaction patterns, and shares practical lessons learned from building flight‑ticket widgets for a production app.
This article explains how to detect multiple QR codes in an iOS image using Core Image, mark each code's location, and let users select a specific code either by adding transparent buttons or by handling touch events, covering coordinate conversion, scaling, and offset calculations.
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.
An organized iOS development knowledge map and a comprehensive list of recommended resources—including language fundamentals, UI libraries, networking tools, data storage solutions, performance monitoring, architecture design, algorithms, and multimedia development—are presented to help iOS developers systematically learn and build applications.
This article explains the necessity and goals of unit testing, outlines common testing concerns such as independent paths, data structures, error handling, and boundary conditions, and provides a detailed guide to integrating and using OCMock in iOS, covering installation, mock types, stubbing, expectations, verification, and advanced techniques.
MetricKit, introduced in iOS 13 and expanded in iOS 14, provides a low‑overhead, system‑driven way to collect app performance, power, and crash diagnostics over the last 24 hours, enabling developers to upload, analyze, and optimize their iOS applications without third‑party SDKs.
This article presents a comprehensive optimization of video caching on iOS, detailing background analysis, a dynamic concurrency design based on network conditions and device performance, test results showing up to 2.5‑fold speed gains, and the core implementation code.
This article explains Cube's evolution from early native rendering challenges to a sophisticated asynchronous, cross‑platform rendering architecture that uses bitmap caching, platform‑specific layers, and a multi‑stage optimization process to boost mobile UI performance on both Android and iOS.
This article explains Swift protocols with associated types, discusses their limitations compared to plain protocols, demonstrates how to resolve related compile‑time errors through generic constraints, protocol composition, and associated‑type constraints, and provides practical code examples for customizing UITabBar items.
The article explains how Youku tackled explosive module growth by introducing an iOS plugin system that decouples components, improves compile times, reduces disk and memory usage, enables simulator support, and provides automated dependency management, ultimately boosting development efficiency and product quality.
Build OptimizationContinuous IntegrationMobile Development
This article explains why iOS app size matters for download conversion, breaks down the components of an IPA, and provides a step‑by‑step guide to Apple’s App Thinning techniques, compiler optimizations, third‑party library management, resource cleanup, and CI/CD automation that together reduced the Yanxuan app from 210 MB to 144 MB.
This article explains how Hema implemented a seamless, cross‑page short‑video playback experience on iOS by reusing player views, handling size‑change animations, mode transitions, active recycling, and state isolation to deliver uninterrupted video immersion.
This article analyzes why NSTimer can cause memory leaks in iOS, presents two ways to break the retain cycle, then dives into Android's focus system—including acquisition, distribution, and clearing—and finally explains how WebView and native code handle cookies on Android.
Youku tackled explosive module growth and tangled dependencies by decomposing its iOS app into independent, Xcode‑based plugins that define modules and relationships, dramatically speeding compilation, enabling hot‑reload and simulator builds, cutting disk usage, and improving debugging, monitoring, and specialized app development.
This article explains the concept of DeepLink, its iOS and Android application scenarios, the design of deployment links across versions, the integration of APK Signature Scheme v2, and the caching strategies (Caffeine) used to efficiently serve channel‑specific packages in a backend service.
Offscreen rendering, a technique where the GPU or CPU renders content to a separate buffer outside the current screen framebuffer, can cause performance overhead due to buffer creation and context switches, and the article explains its principles, common trigger scenarios, and strategies to avoid it in iOS development.
Chinese telecom operators provide one‑click mobile number login and verification services that leverage carrier gateway authentication, allowing iOS, Android, H5, and mini‑program apps to obtain the device’s phone number or validate it without passwords, improving user experience and security across various scenarios.
This article describes how the Same‑City team migrated H5 mini‑games to a native Swift/SpriteKit solution, detailing the mixed Objective‑C/Swift environment, core game architecture, use of Swift functional and generic features, and the resulting improvements in package size, startup time, FPS, and memory consumption.
This article details the background, analysis, and step‑by‑step solutions for reducing package size, improving cold‑start time, and establishing a comprehensive mobile performance testing framework for both Android and iOS versions of the Xueersi Online School app.
This article provides an in‑depth analysis of Objective‑C's runtime message‑sending process, covering the roles of objc_msgSend, method caching, dynamic method resolution, and message forwarding, with detailed code examples and assembly snippets to illustrate each step.
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.
This article provides a detailed technical analysis of GPUImage2’s pipeline architecture, explaining the core concepts, operator overloads, internal relationships such as TargetContainer and SourceContainer, framebuffer management, OpenGL ES integration, and thread‑dispatch mechanisms, all illustrated with Swift code examples and diagrams.
This article details the systematic analysis and practical techniques—resource cleaning, Asset Catalog migration, compression, cloud migration, unused‑code removal, library trimming, and compiler flags—that reduced the Cloud Music iOS client’s install size by 87 MB and download size by 65 MB, while establishing safeguards against future bloat.
Mobile DevelopmentResource Compressionapp size optimization
This article explores the evolution of the iOS main.m AutoreleasePool since Xcode 11, explains how Thread‑Local Storage and compiler optimizations like tail‑call elimination affect object lifetimes, and demonstrates practical code examples and assembly insights for developers seeking deeper memory‑management understanding.
This article details the systematic approach Kuaishou’s video editing app took to define, reproduce, analyze, and resolve iOS out‑of‑memory (OOM) crashes, leveraging edit‑context capture, action tracking, memory profiling, and targeted optimizations that reduced OOM incidents by over 80%.
This article provides a comprehensive overview of the iOS live‑streaming workflow, detailing the six stages—capture, processing, encoding, packaging, network transmission, and playback—along with sample code for video/audio capture, encoding settings, and RTMP transmission.
This article explains the design and implementation of a unified routing SDK for iOS that enables page jumps, parameter passing, return values, interceptors, redirection, and cross‑technology integration (Native, Flutter, HTML5, Mini‑Programs) while remaining non‑intrusive to existing codebases.
This article details the background, functional capabilities, development journey, technical architecture, and deployment experience of ByteDance's iOS automation testing driver tool BDC, illustrating how it automates device interaction, app management, UI control, and large‑scale testing on both macOS and Linux environments.
This article details the 2021 overhaul of iOS WeChat's full‑text search, covering engine selection, segment‑merge optimization, a new VerbatimTokenizer, multi‑level separator support, table schema choices, asynchronous index updates, and extensive performance gains across chat, contacts, and favorites.
This article explains how ByteDance's distributed compilation and build caching solution dramatically reduces compile times for large iOS projects by analyzing dependency bottlenecks, employing distributed builds, caching mechanisms, and various optimization techniques such as inverted indexes and cross-task caches.
This article explains a technique for writing long‑TCP connection business code on mobile devices that is as efficient and concise as short‑link code, using request_id mapping, protobuf messages, and a lightweight SendCore layer with timeout handling.
This guide explains how to unlock an iPhone that is locked due to a forgotten or repeatedly mistyped screen password by using the built‑in remote‑erase feature in iOS 15.2 and later, and provides step‑by‑step recovery‑mode instructions for earlier iOS versions, while warning about data loss.
This article documents a runtime crash triggered by mutating an NSMutableSet while enumerating it, explains how the Objective‑C copy attribute works, demonstrates shallow and deep copy behavior for strings and collections, and provides low‑level source analysis of the copy implementation in the Apple runtime.
This article explains the definitions, causes, and monitoring strategies for iOS app freezes and lags, describes the Heimdallr solution based on Runloop event callbacks, discusses ANR and WatchDog handling, and presents practical optimizations and lessons learned for reliable performance monitoring.
This article introduces a Python 2.7 script that automates the creation of iOS and Android app icons and screenshots, detailing required environments, usage commands, code explanation, and platform-specific considerations such as icon sizes, rounding for Android, and handling of portrait and landscape images.
This guide explains how to set up and use WEditor for Android and tidevice/Appium for iOS to locate UI elements efficiently, covering prerequisite tools, installation commands, step‑by‑step connection procedures, error handling, and best‑practice strategies for reliable mobile UI automation.
This article examines how the widely used Objective‑C‑RSA library can cause RSA encryption failures on iOS when multiple threads concurrently add, delete, and query keychain entries using the same tag, leading to error‑25300 and data corruption, and proposes practical fixes.
This article presents a comprehensive framework for identifying, classifying, and resolving iOS stability issues—covering crash types, governance methodology, deep-dive attribution techniques, real-world case studies, and practical tools such as Zombie monitoring, Coredump, MemoryGraph, and MetricKit—to dramatically improve app reliability.
This article explains why the Taobao mobile team migrated the product review list from Objective‑C to Swift, outlines Swift’s three main advantages—speed, safety, and expressiveness—shows concrete design‑pattern implementations, discusses the challenges faced during migration, and quantifies the resulting gains in code size, review efficiency, and crash reduction.
This guide explains what App Clips are, their capabilities and limitations, how users discover them, and provides a step‑by‑step tutorial for creating, configuring, coding, testing, and publishing an App Clip within an iOS project, including code snippets and deployment tips.
This article explains how WKWebView leverages various WebKit cache types—including disk, memory, and page caches—detailing their structures, sizing strategies, eviction policies, and the exact source‑code logic that governs HTTP caching, cleanup, and validation on iOS.
This article details the Watermelon iOS app's comprehensive startup optimization, covering launch phase definitions, metric design, task scheduling, code instrumentation, thread management, rendering and network improvements, as well as monitoring and anti‑regression measures to consistently reduce launch latency.
This article details the background, current status, and engineering architecture of introducing Swift into 58 Group’s real‑estate iOS apps, explains the two main mixed‑compilation approaches (bridging header and module), presents practical module setup, discusses reflection pitfalls, binding solutions, and performance comparisons between Swift and Objective‑C implementations.
During a three‑month internship at Xianyu, senior software engineering student Wen Jingrui (Mu Chen) tackled Flutter Engine limitations on the iPhone 13’s 120 Hz display, debugging iOS frame‑callback code to enable smooth rendering, fixing keyboard‑animation bugs, and contributing video and image editor features, ultimately earning a full‑time offer.
This article explains how the @synchronized directive works in iOS as a recursive mutex, demonstrates its usage with code examples, and delves into the low‑level implementation involving objc_sync_enter, objc_sync_exit, id2data, and the associated caching mechanisms.
This article evaluates three iOS video streaming approaches—WebDriverAgent MJPEG, Apple ReplayKit, and QuickTime‑based QVH—by implementing prototypes, measuring latency, stability, and functionality, and presenting a detailed performance comparison to guide remote‑control applications.
The article describes an iOS lag‑monitoring system that detects main‑thread RunLoop blocks, samples stacks every 50 ms into a circular buffer, uses an annealing Fibonacci‑based interval to minimize overhead, visualizes hot paths with flame graphs, and streams data through a Flink‑APM pipeline with only ~2 % CPU and a few megabytes of memory impact.
This article examines various Swift performance optimization techniques—including compilation speed improvements, memory allocation strategies, struct versus class trade‑offs, enum usage, collection handling, lazy sequences, bridge reduction, and function dispatch—providing practical code examples and analysis to help developers write faster, more efficient Swift code.
The article provides a detailed overview of one‑click mobile number login and verification services offered by China Mobile, China Telecom, and China Unicom, describing their SDK capabilities, network requirements, caching mechanisms, and typical use cases for mobile and web applications.
The article explains how China Mobile, China Telecom, and China Unicom provide one‑click mobile number login and verification services, detailing SDK capabilities, required network conditions, token acquisition methods, and security considerations for iOS, Android, H5, and mini‑program integrations.
This article presents a comprehensive guide to reducing iOS app package size by analyzing download and install sizes, applying binary and resource optimizations, removing unused code and SDKs, leveraging image cloudization, and establishing standards to achieve sustainable shrinkage while maintaining performance and developer productivity.
This article details Douyin's systematic approach to improving creation experience by defining measurable goals, building a comprehensive metric system, performing relevance analysis, and implementing concrete Android and iOS performance optimizations—including album loading, component architecture, and small‑screen video quality—while outlining monitoring, tooling, and internal platform support that together deliver significant user‑facing gains.
This article explains the programming languages used for Android and iOS apps, compares native languages such as Java, Kotlin, Swift, and Objective‑C with cross‑platform solutions like Flutter (Dart) and uni‑app (Vue.js), and summarizes the typical language stacks for large‑scale mobile applications.
This article explains the various ways to simulate GPS location on iOS devices—including Xcode GPX files, iTools, external Bluetooth accessories, and jailbreak hooks—while also detailing practical detection strategies such as altitude checks, type inspection, callback analysis, and method‑swizzling to identify fake positioning.
This article explains the principles, SDK methods, network requirements, and security considerations of carrier‑based one‑click phone number login and verification for Android and iOS, covering services from China Mobile, China Telecom, and China Unicom.
To align Hema’s app short‑video experience with leading platforms like Douyin, the team introduced a proxy‑based caching layer, pre‑loading mechanisms, m3u8 handling, bitrate and resolution optimizations, dual‑player strategies, and audio controls, resulting in significantly reduced playback latency and smoother user interaction across iOS devices.
This article details Beike's comprehensive Flutter integration approach for existing iOS and Android projects, covering official module templates, the challenges of the native integration process, and the company's source‑code and binary‑mode solutions that streamline podspec configuration, plugin handling, SDK automation, flavor support, and build efficiency.
The article introduces ARK, a dynamic development mode for iOS that replaces traditional CocoaPods‑Xcode workflows with a lightweight 2 MB repository and real‑time library conversion, dramatically cutting pod install and compile times, improving build success, and enabling fast, component‑focused development using ByteDance’s MBox tool.
This article explains the purpose, syntax, and underlying principles of UIKIT_EXTERN and related macros such as extern, static, and const in iOS, demonstrates how __attribute__ and visibility modifiers affect symbol linkage, and outlines practical scenarios and extensions for safer, more efficient code across dynamic libraries.
This guide walks you through enabling remote connections in Fiddler, configuring Windows firewall, setting up an iPhone/iPad proxy, capturing HTTP traffic, decrypting HTTPS by installing a trusted certificate, and suppressing server‑verification warnings for seamless mobile web debugging.
This article explains why traditional CPU usage metrics are unreliable for real‑time audio/video apps, introduces essential performance indicators, reviews native and third‑party analysis tools for iOS and Android, and proposes power‑consumption‑based evaluation methods with practical testing guidelines.
Apple’s WWDC21‑introduced Adaptive‑Sync on macOS and ProMotion on iPad Pro and iPhone 13 Pro enable variable‑refresh‑rate displays, and developers can use Metal and CADisplayLink APIs to dynamically pace frames, query hardware limits, and adjust rates based on GPU load for smoother motion.
This article explains how to build an iOS private library by extracting document_apis from the SDK using the lzfse compression method and the Dash documentation tool, detailing file paths, database structures, and parsing techniques for API metadata.
This guide explains how to update an iOS private library to the latest 15.0 runtime headers by preparing the development environment, cloning and compiling RuntimeBrowser, accessing its built‑in file server, and exporting the file list with wget for constructing a private API library.
The article dissects Apple’s FairPlay DRM, detailing its kernel‑driver and daemon decryption workflow, the LC_ENCRYPTION_INFO metadata, per‑user licensing files, LLVM‑level obfuscation techniques such as opaque predicates and control‑flow flattening, and the identified weaknesses that enable reverse‑engineering and key extraction.
This article details Ctrip’s experience integrating Kotlin Multiplatform Mobile (KMM) into its Android and iOS ticketing apps, covering background selection, overall architecture, Android and iOS integration steps, code examples, challenges such as concurrency model differences, and ecosystem considerations.
This article provides a detailed overview of iOS UI automation testing, covering XCUITest fundamentals, Accessibility considerations, sample Swift code, manual and recorded test case creation, command‑line toolchains, Web Service‑based architecture, and a comparison of Appium and Macaca for building scalable, CI‑integrated mobile testing platforms.