iOS

Xcode

Show Xcode app / build version

xcodebuild -version

Show installed SDK versions

xcodebuild -showsdks

Install command line developer tools

xcode-select --install

Show selected command line tools

xcode-select -p

Reset to default command line tools path

xcode-select --reset

Switch selected version

sudo xcode-select -s /Applications/Xcode<xxxx>.app

List available developer tools (location via xcode-select -p eg. Xcode)

ls -l /Applications/Xcode.app/Contents/Developer/usr/bin/

Xcode launch helper (command line tool for opening Xcode documents)

xed

Simulator

Open simulator app

Open simulator app (direct path alternative)

Gestures

  • Position touch gesture points using OPTION / SHIFT

  • Engage touch by pressing (eg. click and hold mouse / trackpad)

Show touch gesture UI (scale distance between touches with mouse / trackpad)

Show touch gesture UI and move touches at set scale (release shift to adjust scale distance)

Toggle touch gesture UI to remain active with being engaged

Re-engage SHIFT to move touch points and hold OPTION to adjust scale distance

Simulator Commands

Show xcrun simulator commands

Show list of simulators (Sample device ID: 12AB3C4D-A12B-12A3-12AB-A12B34C5678D)

Get device ID for booted simulators

Boot / shutdown simulator device ID

Install IPA to Simulator

Rename from ipa to .zip and unzip

Install via xcrun to the booted device or specified device ID

iOS Development Bridge (idb)

  • https://fbidb.io/

Install

If fb-idb fails to install globally use --user install and add user location to path

List current simulators (shows device udid)

Load simulator

Shut down simulators

Simulator Logs

Show iOS simulator app crash logs

  • Open Console.app

  • Navigate to "Diagnostic Reports"

Manual logs will show in Console.app when viewing the related simulator from "Devices"

Open system log from simulator (Shortcut: CMD + /)

SDK Configuration

Show current iPhone OS SDK path

When no SDK is selected switch Xcode versions

Cocoapods

Install cocoapods

Check pod version

Last updated