{"schemaVersion":"2.0.0","locale":"en","title":"Installation","description":"Build the documented CLI from an owner-provided checkout. Access is restricted during this pre-prod phase: no public source repository, binary download, Homebrew package, or hosted","htmlUrl":"https://docs.swift-analyzer.com/get-started/installation/","markdownUrl":"https://docs.swift-analyzer.com/get-started/installation/index.md","productRevision":"524fa07e0ae4153c84ac12ae9eb6559df89ec2be","catalogRevision":"4558458d","docsRevision":"1f17ba58ab08627e0de898f1442067b09e960b48cd5605d6529e9275f8930d68","channel":"pre-prod","maturity":"experimental","access":"owner-provided-checkout","markdown":"# Installation\n\nBuild the documented CLI from an owner-provided checkout. Access is restricted during this pre-prod phase: no public source repository, binary download, Homebrew package, or hosted service is available.\n\n## Requirements\n\n- A checkout supplied by the project owner at product revision `524fa07e0ae4153c84ac12ae9eb6559df89ec2be`.\n- An Apple Silicon Mac running macOS 26 with Apple Swift 6.3.3 and its matching developer tools.\n- Git and the dependencies locked by the checkout's `Package.resolved`.\n- Permission to evaluate the package manifest, retrieve its locked dependencies, and build locally.\n\nRequest the pinned checkout and dependency access from the owner who supplied your copy. Reading this website does not grant access to the CLI. Do not substitute an arbitrary newer checkout for the tested snapshot.\n\n## Check the checkout and compiler\n\nOpen a terminal in the supplied repository directory. These commands are read-only:\n\n```sh\ngit rev-parse HEAD\nxcrun swift --version\n```\n\nThe commit must match the revision above; the compiler must report Apple Swift 6.3.3 and an arm64 macOS target. If they differ, ask the owner for the documented environment or an updated qualification record. Do not reset a checkout containing your own changes.\n\n## Build and verify\n\n```sh\nxcrun swift build --disable-automatic-resolution --product swift-analyzer --jobs 4\nexport ANALYZER=\"$PWD/.build/debug/swift-analyzer\"\n\"$ANALYZER\" --help\n\"$ANALYZER\" source-scan --help\n```\n\nBuilding evaluates `Package.swift`, may retrieve locked dependencies, and compiles the analyzer. The help must list `source-scan` and its `--allow-build` and `--include-stdio-rules` flags. This is a local debug build, not a separately qualified release distribution.\n\nKeep the binary with the resource bundles produced alongside it. Copying only the executable can break resource discovery. The `ANALYZER` variable applies to this terminal session; set it again in a new terminal.\n\n## Next\n\n[Run your first analysis](https://docs.swift-analyzer.com/get-started/first-analysis/) in the same terminal. If the build fails, use [Troubleshooting](https://docs.swift-analyzer.com/guides/troubleshooting/) and preserve the compiler version and error output.\n","anchors":["installation","requirements","check-the-checkout-and-compiler","build-and-verify","next"]}
