Skip to content

Instantly share code, notes, and snippets.

@hisaos
Created October 22, 2012 01:55
Show Gist options
  • Save hisaos/3929235 to your computer and use it in GitHub Desktop.
Save hisaos/3929235 to your computer and use it in GitHub Desktop.
defaults and com.apple.iphonesimulator
# defaults commands with com.apple.iphonesimulator
# usage in detail will show with `defaults` without any arguments
# this sets default simulator device to iPhone
defaults write com.apple.iphonesimulator SimulateDevice -string "iPhone"
defaults write com.apple.iphonesimulator SimulateSDKRoot -string "${SDKROOT_iphonesimulator}"
# this sets default simulator device to iPad
defaults write com.apple.iphonesimulator SimulateDevice -string "iPad"
defaults write com.apple.iphonesimulator SimulateSDKRoot -string "${SDKROOT_iphonesimulator_ipad}"
# this shows the values in com.apple.iphonesimulator domain
defaults read com.apple.iphonesimulator
# you can look into the specific key with `defaults read` command
defaults read com.apple.iphonesimulator SimulateDevice
# you can set new key and value pair in com.apple.iphonesimulator
defaults write com.apple.iphonesimulator Dummy -string "Dummy"
# remove specific key from com.apple.iphonesimulator
defaults remove com.apple.iphonesimulator Dummy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment