浏览代码

Update Simulator's Path to XCode 7.x

Gutem 8 年之前
父节点
当前提交
1e305e0186
共有 1 个文件被更改,包括 4 次插入1 次删除
  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
 }