本文介绍了删除或卸载以前添加的库:cocoapods的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我通过cocoapods将一个外部框架添加到我的iOS应用程序中。如何从项目中删除该库?
I added an external framework via cocoapods into my iOS application. How can i remove that library from the project?
推荐答案
由于接受的答案的副作用已被 - ,我会在这里发布正确的工作流程:
Since the accepted answer's side effects have been removed by a script written by Kyle Fuller - deintegrate, I'll post the proper workflow here:
-
安装deintegrate并清理:
Install deintegrate and clean:
$ sudo gem install cocoapods-deintegrate
$ sudo gem install cocoapods-clean
在项目文件夹中运行deintegrate:
Run deintegrate in the folder of the project:
$ pod deintegrate
清洁:
$ pod clean
修改你的podfile(删除包含你没有的pod的行)想要再次使用)并运行:
Modify your podfile (delete the lines with the pods you don't want to use anymore) and run:
$ pod install
完成。
这篇关于删除或卸载以前添加的库:cocoapods的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!