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.
Synopsis
Section titled “Synopsis”swiftspawn doctorDescription
Section titled “Description”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.
Examples
Section titled “Examples”swiftspawn doctorSample output:
macOS: 26.0Swift: 6.1 at /usr/bin/swiftXcode: 26.0 at /Applications/Xcode.appSwiftLint: 0.55.1 (optional)SwiftFormat: 0.54.0 (optional)All required tools are present.Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 6 | A required prerequisite is missing. |