Cocoapods: Unable to find a specification for [PrivateSpec] depended upon by [PrivateClientSpec]

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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)