【发布时间】:2015-07-16 15:31:13
【问题描述】:
在更新我的项目时,其中包含Podfile 中的这一行:
pod 'UIView-Autolayout', :git => 'https://github.com/dkk/UIView-Autolayout.git'
使用命令pod update 我想更新the pod in this github repository,它具有以下podspec:
Pod::Spec.new do |s|
s.name = 'UIView-Autolayout'
s.version = '0.2.2'
s.license = 'MIT'
s.platform = :ios, '6.0'
s.summary = 'Category on UIView to simplify the creation of common layout constraints.'
s.homepage = 'https://github.com/jrturton/UIView-Autolayout'
s.author = { 'Richard Turton' => 'jrturton@gmail.com' }
s.source = { :git => 'https://github.com/jrturton/UIView-Autolayout.git', :tag => s.version.to_s }
s.source_files = 'Source/*.{h,m}'
s.requires_arc = true
end
我得到的输出是:Installing UIView-Autolayout 0.2.1 (was 0.2.1)。为什么不安装版本0.2.2??
(我的项目是iOS7.0,带ARC)
如果我用pod 'UIView-Autolayout', :git => 'https://github.com/dkk/UIView-Autolayout.git', '0.2.2' 替换Podfile 行,我会得到一个错误
【问题讨论】:
标签: ios github cocoapods podspec