Cocoapods subspec issue: None of your spec sources contain a spec satisfying the dependency

本小妞迷上赌 提交于 2019-12-07 03:09:49

问题


I modified a repo on Github to integrate a swift version of my library.

https://github.com/iDevelopper/PBRevealViewController

However when in a new project I try to pod install I get the error:

[!] Unable to satisfy the following requirements:

  • PBRevealViewController/Swift (= 1.2.3) required by Podfile

None of your spec sources contain a spec satisfying the dependency: PBRevealViewController/Swift (= 1.2.3).

You have either: * out-of-date source repos which you can update with pod repo update or with pod install --repo-update. * mistyped the name or version. * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, pod repo update does not happen on pod install by default.

Some helps are welcome!

Please see the Cocoapods issue:

https://github.com/CocoaPods/CocoaPods/issues/6970#event-1213956994


回答1:


I am not familier this, but I also faced the same issue I followed the few steps

delete your podfile and regenerate your pod file once again use the following steps,

  • pod repo remove master

  • pod setup

  • pod install


来源:https://stackoverflow.com/questions/45796986/cocoapods-subspec-issue-none-of-your-spec-sources-contain-a-spec-satisfying-the

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!