简体   繁体   中英

Cocoapods installing old version of Stripe library by default

Currently attempting to set up Stripe in a fresh iOS app in Swift using the following guide: https://stripe.com/docs/mobile/ios . Immediately ran into trouble with Cocoapods. The repo can be found here: https://github.com/ktransier/stripeTest/blob/master/Podfile

First attempted using the line:

pod 'Stripe'

This resulted in:

Analyzing dependencies
Downloading dependencies
Installing PaymentKit (1.0.2)
Installing Stripe (1.0.2)
Generating Pods project
Integrating client project

I need version 2.2.1 (the latest version), but it is installing 1.0.2.

Next I attempted to use the explicit version number, as copied off the Cocoapods site:

pod 'Stripe', '~> 2.2'

Terminal output:

[!] Unable to satisfy the following requirements:
- `Stripe (~> 2.2)` required by `Podfile`

Here's my stack:

CocoaPods : 0.34.4
Ruby : ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.1]
RubyGems : 2.4.1
Host : Mac OS X 10.10 (14A389)
Xcode : 6.1 (6A1052d)
Git : git version 1.9.3 (Apple Git-50)

How can I install the latest Stripe library?

Looks like your local copy of the specs repo hasn't been updated in a while. Try running

pod repo update

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