在更新我的项目时,其中包含以下行Podfile
:
pod 'UIView-Autolayout', :git => 'https://github.com/dkk/UIView-Autolayout.git'
pod update
使用我想更新此 github 存储库中的 pod的命令,该存储库具有以下 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)
如果我将Podfile
行替换为pod 'UIView-Autolayout', :git => 'https://github.com/dkk/UIView-Autolayout.git', '0.2.2'
我收到错误