Overview
scd is a command-line build tool for Swift Package Manager projects. It extends the standard SPM workflow with support for building, archiving, running, and testing on Android and iOS, while remaining fully compatible with standard Package.swift projects — no special project format or configuration files required.
Key Features
Section titled “Key Features”- Scaffold and manage full multiplatform projects targeting Android, iOS, and macOS from a single Swift codebase
- Build SPM packages for macOS, iOS, and Android
- Archive packages as file trees, Android AAR libraries, or Android Test APKs
- Run and test executable products on the host or on a connected Android device or emulator
- Link native libraries as XCFramework binary targets or Android AAR archives
- Manage Swift SDKs for Android with the
toolchaincommand
Quick Start
Section titled “Quick Start”Install scd via Homebrew:
brew tap scade-platform/toolchainbrew install --cask scdThen build your SPM project for Android:
scd build --platform android-arm64-v8aSee Installation for other installation methods, Using scd to learn what each platform supports, and Reference for the full command reference.
Multiplatform projects
Section titled “Multiplatform projects”To start a new app that targets Android, iOS, and macOS from one Swift codebase, use scd project:
mkdir MyApp && cd MyAppscd project initscd project build --platform iphonesimulatorscd project run --platform iphonesimulatorSee Multiplatform Projects for a full guide.