【问题标题】:Cocoapods installing old version of Stripe library by defaultCocoapods 默认安装旧版本的 Stripe 库
【发布时间】: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


    【解决方案1】:

    您的规范存储库的本地副本似乎有一段时间没有更新了。尝试运行

    pod repo update
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-12-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-20
    • 2013-07-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多