Removing Pod from a project - xcode

I am trying to remove pod from my project. After I delete all the files and everything that I receive this message

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 containers from the project, reinstall them, remove the script from the build stage, nothing works.

+14
source share
3 answers

Ok, I fixed it.

Just use this tool https://github.com/kylef/cocoapods-deintegrate and now everything works fine!

+13
source

remove the module from the pod file, then reinstall the containers

Open a terminal and enter

 cd ~/projectDirectoryPath 

then enter

 open -a Xcode Podfile 

this will open the podfile

delete row

  pod 'Alamofire' 

then save the file (e.g. Alamofire)

in terminal type

 pod install 

and this should update the project and delete the unnecessary swap file.

+28
source

Just to simplify what Aviv mentioned, if you want to completely remove all traces of any modules from the project, then simply delete all the files associated with the modules from the project folder and run:

 sudo gem install cocoapods-deintegrate pod deintegrate 

And the sandbox error Podfile.lock should go away.

0
source

All Articles