更新Xocde 9 后, Cocoapods异常记录

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了更新Xocde 9 后, Cocoapods异常记录相关的知识,希望对你有一定的参考价值。

bogon:Snail chenwei$  pod install

-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or director

找不到ruby 文件

首先要保证 更新 gem是最新的

sudo gem update --system

之后再更新 cocoapods ,不更新gem不可以

 

sudo gem install -n /usr/local/bin cocoapods

 

成功:  

bogon:Snail chenwei$ pod install

Analyzing dependencies

Downloading dependencies

Installing AFNetworking (3.1.0)

Using CommonElement (0.2.2)

Using MJRefresh (3.1.12)

Using Masonry (1.0.2)

Using XHLaunchAd (3.0.1)

Generating Pods project

Integrating client project

Sending stats

Pod installation complete! There are 5 dependencies from the Podfile and 5 total pods installed.

以上是关于更新Xocde 9 后, Cocoapods异常记录的主要内容,如果未能解决你的问题,请参考以下文章

使用 sudo gem install cocoapods 更新 cocopods 后,它仍然显示旧版本

Cocoapods 更新后不再构建项目?

iOS更新 CocoaPods 后 Podfile 报错

更新到 1.0.0 后 cocoapods link_with 出错

Flutter 2 升级:CocoaPods 未安装或无效状态

CocoaPods 1.0之前版本无法pod install和pod update! 更新后CocoaPods 1.1.1 Podfile新的写法.