Created
October 22, 2012 01:55
-
-
Save hisaos/3929235 to your computer and use it in GitHub Desktop.
defaults and com.apple.iphonesimulator
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
# 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