macOS Cheatsheet
Table of contents
Xcode
Check version
xcodebuild -version
Xcode Select
Check version
xcode-select --version
Check selected directory
xcode-select --print-path
Install Command Line Tools
- Open dialog for installation
xcode-select --install
- Click
Install
- Click
Argree
- Wait for
Downloading software
🔲 Validation
xcode-select --print-path
ℹ️ Location
/Library/Developer/CommandLineTools
Switch Xcode
sudo xcode-select --switch {XCODE_PATH}
Replace dessired
{XCODE_PATH}
E.g./Applications/Xcode_14.3.1.app
Switch Command Line Tools
sudo xcode-select --switch {DEVELOPER_DIRECTORY}
Replace dessired
{DEVELOPER_DIRECTORY}
E.g./Library/Developer/CommandLineTools
or/Applications/Xcode.app/Contents/Developer
Simulator
Open simulator
open -a simulator