Removing Pod from project - xcode
Ok, I fixed it.
Just use this tool https://github.com/kylef/cocoapods-deintegrate and now everything works fine!
remove the pod from the pod file then reinstall pods
open terminal and type
cd ~/projectDirectoryPath
then type
open -a Xcode Podfile
this will open up the podfile
delete the line
pod 'Alamofire'
then save the file (Alamofire is just an example)
in the terminal type
pod install
and this should update the project and remove the unwanted pod file..