删除或卸载以前添加的库:cocoapods

本文翻译自:Remove or uninstall library previously added : cocoapods

I added an external framework via cocoapods into my iOS application. 我通过cocoapods将一个外部框架添加到我的iOS应用程序中。 How can i remove that library from the project? 如何从项目中删除该库?


#1楼

参考:https://stackoom.com/question/vhIh/删除或卸载以前添加的库-cocoapods


#2楼

从Podfile中删除lib,然后再次pod install


#3楼

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: 由于接受的答案的副作用已被Kyle Fuller编写的脚本删除 - 解体 ,我将在此处发布正确的工作流程:

  1. Install clean: 安装干净:

     $ sudo gem install cocoapods-clean 
  2. Run deintegrate in the folder of the project: 在项目的文件夹中运行deintegrate:

    $ pod deintegrate

  3. Clean: 清洁:

    $ pod clean

  4. Modify your podfile (delete the lines with the pods you don't want to use anymore) and run: 修改您的podfile(删除包含您不想再使用的pod的行)并运行:

    $ pod install

Done. 完成。


#4楼

  1. Remove pod name(which to remove) from Podfile and then 从Podfile中删除pod名称(要删除),然后
  2. Open Terminal, set project folder path 打开终端,设置项目文件夹路径
  3. Run pod install --no-integrate 运行pod install --no-integrate

#5楼

  1. Remove the library from your Podfile 从Podfile中删除库

  2. Run pod install on the terminal 在终端上运行pod install


#6楼

Remove pod name from Podfile then Open Terminal, set project folder path and Run pod update command. Podfile删除pod名称,然后打开Terminal,设置项目文件夹路径和Run pod update命令。

NOTE: pod update will update all the libraries to the latest version and will also remove those libraries whose name have been removed from podfile. 注意: pod update会将所有库更新为最新版本,并且还将删除已从podfile中删除其名称的库。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值