更新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.

posted @ 2017-11-24 17:50  陈伟的博园  阅读(225)  评论(0编辑  收藏  举报