如何在Swift 4.2 Xcode 10中更新cocoapods

时间:2018-10-04 11:32:45

标签: ios iphone swift xcode

我无法在Swift 4.2和xcode 10中更新我的razorpay cocoapods。我使用的podfile名称是pod'razorpay-pod','1.0.24',但是我同时使用了pod install和pod update命令来更新我的cocoapods。像这样的错误

这是我在终端机中出现的错误

[!] CocoaPods could not find compatible versions for pod "razorpay-pod":
In snapshot (Podfile.lock):
razorpay-pod (= 1.0.22)

In Podfile:
razorpay-pod (= 1.0.24)

razorpay-pod

Specs satisfying the `razorpay-pod, razorpay-pod (= 1.0.24), razorpay-pod (= 1.0.22)` dependency were found, but they required a higher minimum deployment target.

2 个答案:

答案 0 :(得分:1)

如调试输出所示:

Specs satisfying the `razorpay-pod, razorpay-pod (= 1.0.24), razorpay-pod (= 1.0.22)` dependency were found, but they **required a higher minimum deployment target.**

查找razorpay-pod的最低部署目标是什么,并将项目的部署目标设置为此。

答案 1 :(得分:1)

要更新CocoaPods,只需再次安装gem

$ [sudo] gem install cocoapods

或者对于预发行版本

$ [sudo] gem install cocoapods --pre

然后尝试在您的目录上更新pod。