【发布时间】:2017-03-22 02:18:55
【问题描述】:
我在更新Podfile 后运行pod install,没有安装LeanCloud pod,我收到以下消息:
分析依赖关系 [!] 只有满足以下要求的预发布版本可用:
'LeanCloud', '>= 0'
您应该明确指定版本才能安装预发布版本
这是我的Podfile 的样子:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'todolist' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for todolist
pod 'Alamofire'
pod 'SwiftyJSON'
pod 'LeanCloud', '>= 0'
end
我在 macOS 10.12.3 上运行,Cocoapods 版本为 1.2.0
【问题讨论】:
-
我试过你的 podfile,它工作正常
-
这很奇怪。我尝试重新安装
Cocoapods,更新 pod repo。什么都行不通。 -
@f_qi 您是否尝试过删除 .xcworspace 文件、pod 并进行 pod 安装/更新?
-
我看到version 10.0.0 可用。所以你应该使用
pod'LeanCloud','~>10.0.0'