Skip to content

Instantly share code, notes, and snippets.

@sunnyy02
Created August 28, 2022 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunnyy02/a1f8435ceabb73e05656eeb78fb7710c to your computer and use it in GitHub Desktop.
Save sunnyy02/a1f8435ceabb73e05656eeb78fb7710c to your computer and use it in GitHub Desktop.
# create a simulator
xcrun simctl create "my first simulator" "iPhone X" com.apple.CoreSimulator.SimRuntime.iOS-14–5
# boot a simulator
xcrun simctl boot 64B94C27-A5BB-4B2A-8E6B-C48B1AFEF298
# shutdown
xcrun simctl shutdown 64B94C27-A5BB-4B2A-8E6B-C48B1AFEF298
# show content of a plist file
plutil -p "[HOME]/Library/Developer/CoreSimulator/Devices/[DEVICE_NAME]/data/Library/Preferences/.GlobalPreferences.plist"
# Set locale to be Australia
plutil -replace AppleLocale -string "en_AU" "$HOME/Library/Developer/CoreSimulator/Devices/64B94C27-A5BB-4B2A-8E6B-C48B1AFEF298/data/Library/Preferences/.GlobalPreferences.plist"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment