Browse Source

Merge pull request #3224 from Neal/xcode-simulator-fix

Update path for the iOS simulator.
Robby Russell 10 years ago
parent
commit
548b9c447d
1 changed files with 6 additions and 1 deletions
  1. 6 1
      plugins/xcode/xcode.plugin.zsh

+ 6 - 1
plugins/xcode/xcode.plugin.zsh

@@ -16,4 +16,9 @@ function xcsel {
 
 alias xcb='xcodebuild'
 alias xcp='xcode-select --print-path'
-alias simulator='open $(xcode-select  -p)/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app'
+
+if [[ -d $(xcode-select -p)/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app ]]; then
+  alias simulator='open $(xcode-select -p)/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app'
+else
+  alias simulator='open $(xcode-select -p)/Applications/iOS\ Simulator.app'
+fi