Skip to content

doctor

Check the local environment for prerequisites.

Inspects the local toolchain and reports what’s installed, what’s missing, and where each tool was found.

Terminal window
swiftspawn doctor

Run doctor after installing swiftspawn to confirm the environment is ready, or any time builds start failing for environmental reasons. It checks for:

  • macOS version
  • Swift toolchain (swift --version)
  • Xcode (xcode-select -p, xcodebuild -version)
  • SwiftLint (swiftlint version)
  • SwiftFormat (swiftformat --version)

Each tool prints version + path on success, or a hint on failure. Exit is 0 if all required tools are present.

SwiftLint and SwiftFormat are optional; missing them is a warning, not an error.

Terminal window
swiftspawn doctor

Sample output:

macOS: 26.0
Swift: 6.1 at /usr/bin/swift
Xcode: 26.0 at /Applications/Xcode.app
SwiftLint: 0.55.1 (optional)
SwiftFormat: 0.54.0 (optional)
All required tools are present.
CodeMeaning
6A required prerequisite is missing.