-
-
Save subdigital/5420709 to your computer and use it in GitHub Desktop.
Open the first Xcode workspace or project found
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
only excute xc :
Found TestProj.xcodeproj. Opening with /Library/Developer/CommandLineTools
The application /Library/Developer/CommandLineTools cannot be opened because its executable is missing.
Please Help me!
I Have installed Xcode command line Tool.