Commit 6ca57e03 authored by Thi's avatar Thi Committed by Marc Cornellà
Browse files

[plugins/xcode] Fix opening project using a wrong Xcode version (#6829)

parent 626b30b2
...@@ -22,8 +22,11 @@ function xc { ...@@ -22,8 +22,11 @@ function xc {
fi fi
return 1 return 1
else else
echo "Found ${xcode_proj[1]}" local active_path
open "${xcode_proj[1]}" active_path=$(xcode-select -p)
active_path=${active_path%%/Contents/Developer*}
echo "Found ${xcode_proj[1]}. Opening with ${active_path}"
open -a "$active_path" "${xcode_proj[1]}"
fi fi
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment