从CocoaPods Specs Repo删除版本 [英] Removing Versions from CocoaPods Specs Repo

查看:596
本文介绍了从CocoaPods Specs Repo删除版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚使用 pod trunk push 在Specs Repo中发布了Pod的Beta版.我想知道是否可以从规范存储库中删除此版本规范.我找不到通过 pod 命令执行此操作的任何方式.

I've just published a Beta version of a Pod in the Specs Repo, using pod trunk push. I would like to know if is there any way of removing this version Spec from the Spec Repo. I didn't find any way of doing this via the pod command.

推荐答案

CocoaPods现在提供 a CLI 用于删除广告连播,可以通过以下方式完成:

CocoaPods now provides a CLI for deleting pods, it can be done with:

pod trunk delete PODNAME VERSION

原始答案:

强烈不建议删除规格.如果您推送打算以后删除的规范,则不应该一开始就推送它.这是因为,如果有任何用户在删除您的规范后立即使用您的规范,则他们的项目将中断.如果发生意外,您可以向规格存储库提交拉取请求,以删除您的版本.同样值得注意的是,删除此版本后,您将永远无法再推送具有相同版本号的规范.

Removing specs is highly discouraged. If you push a spec intending to remove it later you shouldn't push it in the first place. This is because if any users are using your spec as soon as you remove it their project will break. If this was an accident you can submit a pull request to the specs repo removing your version. Also worth noting after removing this version you can never again push a spec with the same version number.

这篇关于从CocoaPods Specs Repo删除版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆