macOS Cheatsheet


Table of contents

  1. Xcode
    1. Check version
  2. Xcode Select
    1. Check version
    2. Check selected directory
    3. Install Command Line Tools
    4. Switch Xcode
    5. Switch Command Line Tools
  3. Simulator
    1. Open simulator

Xcode

Check version
xcodebuild -version

Xcode Select

Check version
xcode-select --version
Check selected directory
xcode-select --print-path
Install Command Line Tools
  1. Open dialog for installation
    xcode-select --install
    
  2. Click Install
  3. Click Argree
  4. 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