Browse Source

Merge pull request #4424 from Gutem/patch-1

Update Simulator's Path to XCode 7.x
Robby Russell 9 years ago
parent
commit
bd264980a5
1 changed files with 4 additions and 1 deletions
  1. 4 1
      plugins/xcode/xcode.plugin.zsh

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

@@ -179,7 +179,10 @@ function simulator {
   if [[ -d "${devfolder}/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app" ]]; then
     open "${devfolder}/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app"
   # Xcode ≥ 6.x
-  else
+  elif [[ -d "${devfolder}/Applications/iOS Simulator.app" ]]; then
     open "${devfolder}/Applications/iOS Simulator.app"
+  # Xcode ≥ 7.x
+  else
+    open "${devfolder}/Applications/Simulator.app"
   fi
 }