'pod spec lint'和'pod lib lint'有什么区别? [英] What's the difference between 'pod spec lint' and 'pod lib lint'?

查看:1247
本文介绍了'pod spec lint'和'pod lib lint'有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Cocoapods提供了两个lint命令, spec lint lib lint 。它们之间有什么确切的区别?它们分别在什么情况下使用?

Cocoapods provides two lint commands, spec lint and lib lint. What's the exact different between them, and in what scenario are they each used?

我阅读了文档(规范 lib ),但我找不到它们之间的区别,而且我不明白为什么Cocoapods为同一件事提供两个命令。

I read the documentation (spec, lib), but I can not find the difference between them, and I do not understand why Cocoapods provides two command for the same thing.

推荐答案

TL; DR :pod lib lint = local,pod spec lint = Local / remote

TL;DR: pod lib lint = local, pod spec lint = local/remote

您提到您已经阅读了文档,但仍不清楚。我会尝试使它更清晰:

You mentioned that you had read the docs but it's still unclear. I'll try to make it more clear :

pod lib lint

在本地将 lint 您的广告连播,只会确保您提供了正确的一切来创建您的广告连播。但这还不足以验证您的Pod,仅 pod spec lint 即可。

Will lint your pod locally, and will just ensure that you provided everything properly to create your pod. But it will not be enough to validate your pod, Only pod spec lint will.

pod spec lint

棉绒您的吊舱在任何地方。我的意思是,例如,您可以在GitHub上安装pod源代码,它会 lint 。如果 pod spec lint 返回没有错误,则可以将倾斜的Pod推到Cocoapods。

Will lint your pod anywhere. By that I mean that you can have your pod source code up on GitHub, for example, and it will lint. If the pod spec lint returns without errors, you can push the linted pod up to Cocoapods.

这篇关于'pod spec lint'和'pod lib lint'有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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