Last active
September 1, 2015 22:59
-
-
Save KaiCode2/47a6ca3a9dafb6df6c02 to your computer and use it in GitHub Desktop.
A tiny bash script to fix my pod problems
This file contains 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
# !/bin/bash | |
clear | |
echo fear no more $USER, we are here to help | |
echo | |
echo Killing Xcode processes | |
kill $(ps aux | grep 'Xcode' | awk '{print $2}') | |
echo done | |
echo | |
echo removing Pods directory | |
rm -rf ./Pods/ | |
echo done | |
echo | |
echo installing Pods | |
echo | |
pod install | |
echo done | |
echo attempting to open | |
if [ -e *.xcworkspace/ ] ; then | |
echo opening workspace | |
open *.xcworkspace/ | |
elif [ -e *.xcodeproj ] ; then | |
echo opening project | |
open *.xcodeproj | |
else | |
echo no Xcode workspace or Xcode project were found | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment