从项目中删除 Pod - xcode

Removing Pod from project - 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.

我尝试从项目中删除 pods,重新安装它们,从构建阶段删除脚本,但没有任何效果。

好的,我修好了。

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

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

打开终端并输入

cd ~/projectDirectoryPath

然后输入

open -a Xcode Podfile

这将打开 podfile

删除行

 pod 'Alamofire'

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

在终端输入

pod install

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

只是为了简化 Aviv 提到的内容,如果您想从项目中完全删除任何 pods 的所有痕迹,那么只需从您的项目文件夹和 运行 中删除所有与 pod 相关的文件:

sudo gem install cocoapods-deintegrate

pod deintegrate

沙盒 Podfile.lock 错误应该会消失。