bmkmanoj
11/20/2019 - 9:42 AM

defaults and com.apple.iphonesimulator

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