bd264980a5532cfd15e63300869ae17b61f9f9c5

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #4424 from Gutem/patch-1

Update Simulator's Path to XCode 7.x

Diff

 1diff --git a/plugins/xcode/xcode.plugin.zsh b/plugins/xcode/xcode.plugin.zsh
 2index b63a857a7db47bbc213ec34073b36b4001318d6e..0a2fa0839bdb99832f7d7eb4899959def7044002 100644
 3--- a/plugins/xcode/xcode.plugin.zsh
 4+++ b/plugins/xcode/xcode.plugin.zsh
 5@@ -179,7 +179,10 @@ function simulator {
 6   if [[ -d "${devfolder}/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app" ]]; then
 7     open "${devfolder}/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app"
 8   # Xcode ≥ 6.x
 9-  else
10+  elif [[ -d "${devfolder}/Applications/iOS Simulator.app" ]]; then
11     open "${devfolder}/Applications/iOS Simulator.app"
12+  # Xcode ≥ 7.x
13+  else
14+    open "${devfolder}/Applications/Simulator.app"
15   fi
16 }