美文网首页
cocoapods 使用说明

cocoapods 使用说明

作者: 今天天气很好嗯 | 来源:发表于2017-11-08 10:50 被阅读0次

platform:ios,'8.0'use_frameworks!

target'MyApp'dopod'AFNetworking','~> 2.6'pod'ORStackView','~> 3.0'pod'SwiftyJSON','~> 2.3'

pod'Qiniu','~>7.1'end

http://brew.sh/index_zh-cn.html更新ruby 环境

chenzhendeMacBook-Air:MyMapOfGoogle shenzhen$touch podfile

chenzhendeMacBook-Air:MyMapOfGoogle shenzhen$open podfile

chenzhendeMacBook-Air:MyMapOfGoogle shenzhen$pod install --no-repo-update

最近使用CocoaPods来添加第三方类库,无论是执行pod install还是pod update都卡在了Analyzing dependencies不动

原因在于当执行以上两个命令的时候会升级CocoaPods的spec仓库,加一个参数可以省略这一步,然后速度就会提升不少。加参数的命令如下:

pod install --verbose --no-repo-update

pod update --verbose --no-repo-update

相关文章

网友评论

      本文标题:cocoapods 使用说明

      本文链接:https://www.haomeiwen.com/subject/mmeemxtx.html