简体   繁体   中英

Cocoapods: Unable to find a specification for `PUBLIC POD` depended upon by 'PRIVATE POD'

I keep running into the error specified in the title. I am trying to deploy private pods by this tutorial: https://medium.com/onfido-tech/distributing-compiled-swift-frameworks-via-cocoapods-8cb67a584d57 the problem is that the framework I want to deploy has one dependency. And due to that dependency I am getting this error, although I have already tried things like: pod repo update and also adding source 'https://github.com/CocoaPods/Specs.git' along with my private repo source in a test projects Podfile.

My current cocoapods version is 1.9.1.

Most likely you first have to add the private pod spec source (ie pods 'https://github.com/MY_GITHUB_USER/MyPrivateSpecs.git' ) source on top of the public pods source ( source 'https://github.com/CocoaPods/Specs.git' ).

Cocoapods will first search and resolve dependencies from the private pods specs repository. If unsolved it will search and resolve dependencies in the public pod spec repository.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM