// ZSH-XCODE-COMPLETIONS — ZSH COMPLETIONS FOR THE XCODE COMMAND-LINE TOOLS

zsh plugin · completions for xcodebuild, xcrun, genstrings, nm, plutil, xcode-select, strings, swift, swift-demangle · xcrun-shim binaries for nested completion

GitHub Issues
// Color scheme

>_ZSH-XCODE-COMPLETIONS

Xcode command-line tools, completed. Zsh completions for the Xcode command-line tools, with xcrun-shim binaries to work around xcrun's nested-command completion limitation.

Install

# Homebrew (recommended)
brew install keith/formulae/zsh-xcode-completions

# Zinit
zinit ice lucid nocompile
zinit load MenkeTechnologies/zsh-xcode-completions

# Oh My Zsh
git clone https://github.com/MenkeTechnologies/zsh-xcode-completions \
    "$HOME/.oh-my-zsh/custom/plugins/zsh-xcode-completions"
# then: plugins+=(zsh-xcode-completions)

# Manual
git clone https://github.com/MenkeTechnologies/zsh-xcode-completions
# source the plugin file or copy _* files onto your fpath

The Homebrew formula installs the shim binaries to PATH. If you don't want shims, install with --without-shims.

Covered binaries

xcodebuildbuild / archive / test / install
xcrunlocate / run developer tools (with shims for nested completion)
xcode-selectswitch active developer directory
genstringsextract .strings from source
nm / stringssymbol / string inspection
plutilproperty-list utility
swiftSwift compiler / REPL / package manager
swift-demangledemangle Swift symbols

Examples

xcodebuild -scheme <TAB>       # scheme completion
xcodebuild -destination <TAB>  # destination platform completion
xcrun <TAB>                    # tool name completion
swift package <TAB>             # swift package subcommand completion
plutil -convert <TAB>          # format completion

Sibling plugins

Part of the MenkeTechnologies zsh plugin family — the MenkeTechnologiesMeta umbrella: