无法在 Swift 3 和 Xcode 8.3.3 中安装 pod 'CalendarKit'、'0.1.22'

Unable to install pod 'CalendarKit', '0.1.22' in Swift 3 and Xcode 8.3.3

The GitHub page for CalendarKit 指定 Swift 3 的设置是:

pod 'CalendarKit', '0.1.22'

但这会引发错误:

[!] Unable to satisfy the following requirements: - CalendarKit (= 0.1.22) required by Podfile None of your spec sources contain a spec satisfying the dependency: CalendarKit (= 0.1.22).

You have either:
* out-of-date source repos which you can update with pod repo update or with pod install --repo-update.

他们提供的信息不正确,他们的 Podspec 不是最新的。您应该在 Podfile 中指定 git 和 commit for 0.1.22 以下载 CalendarKit for Swift 3:

pod 'CalendarKit', :git => 'https://github.com/richardtop/CalendarKit.git', :commit => '65ace5a'

你可以试试 pod repo update 看看是否有帮助吗?

另一个用户 a similar problem 并且更新 CocoaPods 规范存储库帮助了他们。

这里是对应版本的podspec,所以不是Specs仓库本身的问题。

披露:我是 CalendarKit 的作者