Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing Pod from project - xcode

I'm trying to remove pod from my project. After i'm deleting all the files and everything i'm getting this messages

diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

I tried to remove the pods from the project, reinstall them, remove the script from the build phase, nothing is working.

like image 401
Aviv Paz Avatar asked May 08 '15 05:05

Aviv Paz


People also ask

How do I delete a pod from my Mac?

Find the pods file in Finder, then delete each of the individual pods (you'll notice they're missing the . h and . m files). Then pod update .

How do I uninstall pods?

First, confirm the name of the node you want to remove using kubectl get nodes , and make sure that all of the pods on the node can be safely terminated without any special procedures. Next, use the kubectl drain command to evict all user pods from the node.

Can we delete POD file?

If you are too lazy to remove those files, there is cocoapods-clean gem, which will remove Podfile. lock, Pods/ and *. xcworkspace for you. The only thing left is Podfile, which you can remove it with remove command rm .


1 Answers

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..

like image 110
Matt Wyeth Avatar answered Sep 25 '22 16:09

Matt Wyeth