| English | 日本語 |
|---|
A mise plugin that installs shims for xcodebuild, xcrun, and xed. The shims read .xcode-version and switch Xcode per directory.
mise plugins install mise-xcode-version https://github.com/novr/mise-xcode-version
mise install mise-xcode-version@1Enable the tool so shims are on PATH: mise use mise-xcode-version@1 (this dir) or mise use -g mise-xcode-version@1 (global). Requires mise activate in your shell.
Or add to .mise.toml:
[plugins]
mise-xcode-version = "https://github.com/novr/mise-xcode-version"
[tools]
mise-xcode-version = "1"Put an Xcode version (e.g. 16.3) in .xcode-version in your project. The shims search upward from the current directory, so subdirs work too.
xcodebuild -version
xcrun --find swiftIf the version cannot be resolved, the wrapper warns and falls back to the system developer dir (xcode-select -p).
- macOS only. Does not install Xcode; only points at existing
/Applications/Xcode-*.app. - Shims are xcodebuild / xcrun / xed only. Use
xcrun swiftfor Xcode-bundled Swift.
MIT
- pack:
make pack→xcode-version-shims.tar.gz. Verify:make test. - release: Update
PLUGIN.versioninmetadata.lua, thengit tag v0.x.x && git push origin v0.x.x. Actions attach the tarball to the release. - Local test: Set
MISE_XCODE_SHIMS_URLto the URL serving the tarball, thenmise install. Integration:make test-integration.