Skip to content

Instantly share code, notes, and snippets.

@KaiCode2
Last active September 1, 2015 22:59
Show Gist options
  • Save KaiCode2/47a6ca3a9dafb6df6c02 to your computer and use it in GitHub Desktop.
Save KaiCode2/47a6ca3a9dafb6df6c02 to your computer and use it in GitHub Desktop.
A tiny bash script to fix my pod problems
# !/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