COSCUP 2025

Leaning Swift: a Stupid Way
10.08.2025 , TR211

This presentation will explore the use of private frameworks within Apple's ecosystems (such as iOS and macOS) using the Swift programming language. Since its public release by Apple in 2014, the open-source Swift language has assumed an increasingly pivotal role. Historically, Apple frameworks primarily exposed APIs in Objective-C, C++, or C. However, a significant trend shows more frameworks—both public and private—now adding Swift interfaces or, in some cases, exclusively providing Swift APIs. While abundant resources exist for reverse-engineering frameworks based on Objective-C, C++, and C, there is a comparative scarcity of information for those exposing Swift APIs.

In this talk, we will cover:
1. How to utilize a private framework that exposes Swift APIs.
2. What relevant open-source tools are available for this purpose.
3. Code to achieve functionality similar to or potentially surpassing Apple's /usr/bin/modelcatalogdump utility.


Zielpublikum:

Folks who want to use private frameworks with Swift APIs

Schwierigkeitsgrad:

中階

Koan-Sin Tan gained early exposure to BSD and other open-source software on a VAX-11/780, prior to the coining of the term "open source." A past contributor to TensorFlow Lite, he is now the co-chair of MLCommons' Mobile Working Group, an industrial consortium for ML performance benchmarks. Mr. Tan has frequently presented on TensorFlow-related subjects at COSCUP.