ios 从项目中删除 Pod - xcode
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30116595/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Removing Pod from project - xcode
提问by Aviv Paz
I'm trying to remove pod from my project. After i'm deleting all the files and everything i'm getting this messages
我正在尝试从我的项目中删除 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.
I tried to remove the pods from the project, reinstall them, remove the script from the build phase, nothing is working.
我试图从项目中删除 pod,重新安装它们,从构建阶段删除脚本,但没有任何效果。
采纳答案by Aviv Paz
Ok, I fixed it.
好的,我修好了。
Just use this tool https://github.com/kylef/cocoapods-deintegrateand now everything works fine!
只需使用此工具https://github.com/kylef/cocoapods-deintegrate,现在一切正常!
回答by Matt Wyeth
remove the pod from the pod file then reinstall pods
从 pod 文件中删除 pod,然后重新安装 pod
open terminal and type
打开终端并输入
cd ~/projectDirectoryPath
then type
然后输入
open -a Xcode Podfile
this will open up the podfile
这将打开 podfile
delete the line
删除该行
pod 'Alamofire'
then save the file (Alamofire is just an example)
然后保存文件(Alamofire 只是一个例子)
in the terminal type
在终端类型
pod install
and this should update the project and remove the unwanted pod file..
这应该更新项目并删除不需要的 pod 文件..
回答by William T.
Just to simplify what Aviv mentioned, if you want to completely remove all traces of any pods from a project then just delete all of the pod related files from your project folder and run:
只是为了简化 Aviv 提到的内容,如果您想从项目中完全删除任何 Pod 的所有痕迹,那么只需从项目文件夹中删除所有与 Pod 相关的文件并运行:
sudo gem install cocoapods-deintegrate
pod deintegrate
And the sandbox Podfile.lock error should go away.
沙箱 Podfile.lock 错误应该会消失。