iosswift3cocoapodscalendarkit

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


The GitHub page for CalendarKit specifies that the setting for Swift 3 is:

pod 'CalendarKit', '0.1.22'

but that throws an error:

[!] 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.


Solution

  • The information they provided is incorrect, their Podspec is not up to date. You should specify the git and the commit for 0.1.22 in your Podfile to download CalendarKit for Swift 3:

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