Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@icodebuster
Forked from subdigital/xc
Created August 20, 2016 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icodebuster/bd6f5a9b4a9943cb0cc04cd5dfbb102d to your computer and use it in GitHub Desktop.
Save icodebuster/bd6f5a9b4a9943cb0cc04cd5dfbb102d 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