Skip to content

Instantly share code, notes, and snippets.

@vinhnx
Forked from subdigital/xc
Created July 20, 2017 04:48
Show Gist options
  • Save vinhnx/b22ab555bc47c22f3b51633975e5215c to your computer and use it in GitHub Desktop.
Save vinhnx/b22ab555bc47c22f3b51633975e5215c to your computer and use it in GitHub Desktop.
Open the first Xcode workspace or project found
xcode_proj=`find . -name "*.xc*" -d 1 | sort -r | head -1`
if [ `echo -n $xcode_proj | wc -m` == 0 ]
then
echo "No xcworkspace/xcodeproj file found in the current directory."
exit 1
fi
echo "Found $xcode_proj"
open $xcode_proj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment