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

前端 未结 4 939
渐次进展
渐次进展 2020-12-07 18:00

I am trying to use private repositories to break up a larger application. I have followed the guides at:

  • http://www.objectpartners.com/2014/06/25/developing-p
4条回答
  •  盖世英雄少女心
    2020-12-07 18:35

    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

提交回复
热议问题