从项目中删除Pod – xcode

我正在尝试从我的项目中删除pod。 在我删除所有文件和所有我收到此消息后

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. 

我试图从项目中删除pod,重新安装它们,从构建阶段删除脚本,没有任何工作。

从pod文件中删除pod,然后重新安装pod

打开终端和类型

 cd ~/projectDirectoryPath 

然后键入

 open -a Xcode Podfile 

这将打开podfile

删除该行

  pod 'Alamofire' 

然后保存文件(Alamofire只是一个例子)

在终端类型

 pod install 

这应该更新项目并删除不需要的pod文件..

好的,我修好了。

只需使用此工具https://github.com/kylef/cocoapods-deintegrate ,现在一切正常!