Skip to content

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.

  • 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 toolchain command

Install scd via Homebrew:

Terminal window
brew tap scade-platform/toolchain
brew install --cask scd

Then build your SPM project for Android:

Terminal window
scd build --platform android-arm64-v8a

See Installation for other installation methods, Using scd to learn what each platform supports, and Reference for the full command reference.

To start a new app that targets Android, iOS, and macOS from one Swift codebase, use scd project:

Terminal window
mkdir MyApp && cd MyApp
scd project init
scd project build --platform iphonesimulator
scd project run --platform iphonesimulator

See Multiplatform Projects for a full guide.