我在更新了我的pod install后运行了Podfile,LeanCloud吊舱没有安装,我收到了以下消息:
分析依赖!只有满足下列要求的预发行版本: ‘'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
发布于 2017-03-22 03:28:34
不知怎么的,我把pod LeanCloud移动成了第一个吊舱,然后运行了pod update。
# 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 'LeanCloud'
pod 'Alamofire'
pod 'SwiftyJSON'
end⇒吊舱更新 更新所有吊舱 更新本地规范存储库 CocoaPods 1.2.1.beta.1可用。更新使用:
sudo gem install cocoapods --pre好了!这是一个测试版本,我们希望你试一试。 有关更多信息,请参见https://blog.cocoapods.org和https://github.com/CocoaPods/CocoaPods/releases/tag/1.2.1.beta.1上该版本的变更量。 分析相依性 下载依赖项 安装Alamofire 4.2.0 (为4.4.0) 安装LeanCloud (10.0.0) 使用SwiftyJSON (3.1.4) 发电Pods项目 集成客户项目 发送统计数据 吊舱安装完毕!Podfile中有3种依赖项,安装了3种总荚。
发布于 2017-03-22 02:57:26
您必须指定要使用的依赖项的哪个版本。请看一下版本控制是如何工作的:
Cocoapods将使用2.0或更高版本,但少于3.0。
在这里中,您必须选择要使用的LeanCloud版本。然后根据上述步骤在pod文件中相应地更改它。
发布于 2017-03-22 02:37:03
我英语不太好,我想你没有指定移动版本。
平台:ios,'9.0‘<-你应该试着打开这个句子
https://stackoverflow.com/questions/42941556
复制相似问题