MAC升级到10.13后cocoapods报错
2018-03-30 15:05
246 查看
1. applematoiMac:~ apple$ cd /Users/apple/Desktop/XiangMu2.applematoiMac:XiangMu apple$ pod update MJRefresh此时出现错误一:-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory3.终端输入: sudo gem install -n /usr/local/bin cocoapods此时出现错误二:Password:Sorry, try again.Password:Sorry, try again.Password:sudo: 3 incorrect password attempts这里是因为mac的用户与群组里面没有给当前用户设置密码,设置好密码后就好了。4.重复3的输入内容此时出现错误三:ERROR: While executing gem ... (TypeError) no implicit conversion of nil into String5.终端输入:pod --version再次提示:-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory6.终端输入:gem update --system此时出现错误四:ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.7.解决办法:(a)在终端输入:sudo gem update --system 提示:RubyGems system software updated表示成功8.(b)在终端再输入:sudo gem install -n /usr/local/bin cocoapods
提示成功后,可以查看 cocoapods 是否为最新版本9.此时再次输入:pod update MJRefresh出现错误五: error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed[!] 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 update MJRefresh的时候,就更新成功了,就是特别慢。。。
提示成功后,可以查看 cocoapods 是否为最新版本9.此时再次输入:pod update MJRefresh出现错误五: error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed[!] 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 update MJRefresh的时候,就更新成功了,就是特别慢。。。
相关文章推荐
- mac 升级到10.13,CocoaPods不能使用了。
- mac升级到10.13 CocoaPods不能使用
- Mac OS X 10.11升级带来的 cocoapods问题
- iOS 用CocoaPods做iOS程序的依赖管理(基于Alcatraz),以及升级Mac 10.11后Xcode的CocoaPods插件报错
- iOS新工程 升级最新Mac系统 安装cocoapods问题
- mac升级10.13后git不可用问题 no matching cipher found. Their offer: aes128-cbc,3des-cbc,blowfish-cbc
- mac升级10.13之后pod不可用了
- mac10.11环境下如何安装和使用cocoapods(包括ruby升级)
- 关于Mac系统升级到10.11.x之后cocoapods不能使用问题
- Mac升级到OS X10.10系统以后cocoapods无法正常使用
- (Mac-使用问题)Mac升级到 10.12后,下载的一些安装包提示损坏。
- mac OS X中升级php5.5至php5.6 or php7
- mac cocoapods升级到0.37了
- Mac OS X: 是否升级到Lion?
- AMD处理器&VM8.0 完美安装Mac OS X 10.6.0 并成功升级至10.6.8 成功安装 Xcode 4.2
- OC和swift 中 CocoaPods 的 安装和使用方法(Mac)
- Mac OS X从10.7升级到Mountain Lion OS X10.8
- Mac OS X10.9安装的Python2.7升级Python3.3步骤详解
- mac 系统升级到 OS X EI Capitan后,grunt compass任务报错
- Mac 升级10.10 Yosemite系统 brew 报错无法使用解决办法 推荐