【发布时间】:2015-01-06 03:32:41
【问题描述】:
目前正在尝试使用以下指南在 Swift 中的全新 iOS 应用中设置 Stripe:https://stripe.com/docs/mobile/ios。立即遇到了 Cocoapods 的麻烦。可以在这里找到 repo:https://github.com/ktransier/stripeTest/blob/master/Podfile
第一次尝试使用这条线:
pod 'Stripe'
这导致:
Analyzing dependencies
Downloading dependencies
Installing PaymentKit (1.0.2)
Installing Stripe (1.0.2)
Generating Pods project
Integrating client project
我需要版本 2.2.1(最新版本),但它正在安装 1.0.2。
接下来我尝试使用从 Cocoapods 网站复制的显式版本号:
pod 'Stripe', '~> 2.2'
终端输出:
[!] Unable to satisfy the following requirements:
- `Stripe (~> 2.2)` required by `Podfile`
这是我的堆栈:
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)
如何安装最新的 Stripe 库?
【问题讨论】:
标签: ios objective-c swift cocoapods stripe-payments