从网上下载的工程第三方库需要更新,但当我执行pod update时提示以下错误:

[!] The `master` repo requires CocoaPods 1.0.0 -  (currently using 0.39.0)

查看当前CocoaPods版本:

pod --version

0.39.0

说明我们需要更新CocoaPods的版本了

gem source -l
查看当前的镜像
把已有的都进行移除


并只添加这一个镜像
gem source -a https://gems.ruby-china.org
再使用gem source -l查看是否是唯一的镜像
sudo gem install -n /usr/local/bin cocoapods --pre
sudo gem update --system
但是这时候我查看cocoapod的版本还是0.39.0
这时候再去执行
提示错误:
ERROR:  While executing gem ... (URI::InvalidURIError)
    bad URI(is not URI?): ?gems=–pre


执行pod setup
提示错误:
fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': SSLRead() return error -9845
[!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`


按照她的提示,输入:
pod repo update --verbose
这时候貌似要成功了,它会提示:
CocoaPods 1.2.0.beta.1 is available.
To update use: `sudo gem install cocoapods --pre`
[!] This is a test version we'd love you to try.

For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.2.0.beta.1


再使用命令sudo gem install cocoapods --pre
但又提示错误:
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/pod


再输入:
sudo gem install -n /usr/local/bin cocoapods --pre
就完美的解决问题了

这是因为10.11的系统把pod目录已到了usr文件夹下,可以在finder中前往/usr/local/bin文件夹查看


查看当前cocoapods版本
1.2.0.beta.1、


完美

最新文章

  1. Codeforces Round #384 (Div. 2)A,B,C,D
  2. Html - 对话箭头
  3. Android WebView Long Press长按保存图片到手机
  4. UI1_ViewController视图切换及Appdelegate
  5. Android进阶笔记15:ListView篇之图片优化
  6. 马士兵SVN.
  7. ASP.NET三层架构的分析
  8. centos 7 连接 xshell5
  9. 如何备份、还原或迁移 WhatsApp 的信息和资料?
  10. js原生设计模式——2面向对象编程之继承—多继承
  11. PAGELATCH_x 等待--转载
  12. Linux(Ubuntu)使用日记------markdown文件与pdf,doc,docx文件的相互转化(pandoc使用)
  13. 第一个Web应用
  14. php BCMath高精度计算
  15. javascript面向对象精要第三章对象整理精要
  16. 1.两数之和(Two Sum) C++
  17. 【Dynamic Programming】DP算法
  18. 关于Kafka幂等producer的讨论
  19. hdu-2147-博弈
  20. poj 1062 昂贵的聘礼 最短路 dijkstra

热门文章

  1. python appium自动化报“Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server
  2. linux 之 DolphinScheduler 安装步骤
  3. P5024 [NOIP2018 提高组] 保卫王国
  4. 【白话科普】《逆局》最终 boss 隐藏自己的方式是?
  5. android ndk下没有pthread_yield,好在std::this_thread::yield()可以达到同样的效果
  6. 华为matebook x pro监听耳机电流声
  7. Cesium官方英文论坛
  8. Mysql 死锁分析
  9. Qt之消息对话框
  10. qt 简单登录界面(一)