Skip to content

Instantly share code, notes, and snippets.

@dawn360
Created October 28, 2022 15:28
Show Gist options
  • Save dawn360/de97738d4c952ccd762bbe18e25b96a4 to your computer and use it in GitHub Desktop.
Save dawn360/de97738d4c952ccd762bbe18e25b96a4 to your computer and use it in GitHub Desktop.
Simulator Commands #ios #testing
xcrun simctl --help
# To create a new simulator, run the following command
xcrun simctl create “my first simulator” “iPhone X” com.apple.CoreSimulator.SimRuntime.iOS-14–5
xcrun simctl boot 64B94C27-A5BB-4B2A-8E6B-C48B1AFEF298
# inspect the content of a plist file using -p option.
plutil -p "[HOME]/Library/Developer/CoreSimulator/Devices/[DEVICE_NAME]/data/Library/Preferences/.GlobalPreferences.plist"
plutil -replace AppleLocale -string "en_AU" ”$HOME/Library/Developer/CoreSimulator/Devices/64B94C27-A5BB-4B2A-8E6B-C48B1AFEF298/data/Library/Preferences/.GlobalPreferences.plist
xcrun simctl shutdown 64B94C27-A5BB-4B2A-8E6B-C48B1AFEF298
xcrun simctl boot 64B94C27-A5BB-4B2A-8E6B-C48B1AFEF298
plutil -replace keyboardCapsLock -bool true “$HOME/Library/Developer/CoreSimulator/Devices/64B94C27-A5BB-4B2A-8E6B-C48B1AFEF298/data/Library/Preferences/com.apple.Preferences.plist”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment