Cocoapods无法更新第三库至最新的解决方法

来源:互联网 发布:流量推广软件 编辑:程序博客网 时间:2024/06/06 17:33

在升级到cocoapods 0.36.0之后,使用原本podfile配置,在重新执行pod install之后,一些依赖库的版本,低于github上的最新版本。可按照下列配置。指定git,强制使用最新版本

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '6.1'

pod 'IQKeyboardManager', :git => "https://github.com/hackiftekhar/IQKeyboardManager.git"


此外, 可用的其他参数如下

pod 'IQKeyboardManager', :head 使用最新的库(但依然有可能会低于github上的版本,这是目前cocoapods版本的一个不稳定的缺陷)

pod 'IQKeyboardManager', :podspec => '本地文件夹私有podspec配置文件'


原文http://blog.csdn.net/vieri_ch/article/details/44417457

0 0