Created
October 28, 2022 15:28
-
-
Save dawn360/de97738d4c952ccd762bbe18e25b96a4 to your computer and use it in GitHub Desktop.
Simulator Commands #ios #testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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