The reason is that the pod spec
linter is only checking the master specs, so it can't find your private one.
You'll need to use the --sources
option, like this:
pod spec lint --sources='git@our-private-spec-repo:iOS/Specs.git,https://github.com/CocoaPods/Specs'
Two things two note:
- Your private specs need to be online, can't check on a local one
- If you depend on other pods you'll need to add the URL for their Spec repo too, that's why in the example we have https://github.com/CocoaPods/Specs too.
By running pod spec lint --help
you can read more about this option:
--sources=https://github.com/artsy/Specs The sources from which to pull
dependant pods (defaults to
https://github.com/CocoaPods/Specs.git).
Multiple sources must be
comma-delimited.
More on this here and here
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…