Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between 'pod spec lint' and 'pod lib lint'?

Tags:

cocoapods

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?

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.

like image 787
Quanlong Avatar asked Aug 31 '15 05:08

Quanlong


1 Answers

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 

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 

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.

like image 127
Loegic Avatar answered Sep 28 '22 02:09

Loegic