Xcode9 Cocoapos 报错 Generating Po

2017-09-25  本文已影响63人  帆123

自从升级到xcode9 就各种坑,下面是我在遇到Cocoapos 报错 Generating Pods project Abort trap: 6的解决步骤

1、先执行:

sudo gem uninstall cocoapods

sudo gem uninstall cocoapods-core

sudo gem uninstall cocoapods-deintegrate

sudo gem uninstall cocoapods-downloader

sudo gem uninstall cocoapods-plugins

sudo gem uninstall cocoapods-search

sudo gem uninstall cocoapods-stats

sudo gem uninstall cocoapods-try

sudo gem uninstall cocoapods-trunk

2、sudo gem install cocoapods --pre

遇到Could not find a valid gem 'cocoapods' (>= 0) in any repository的报错

百度了下,说可能是权限的问题,需要进去到root下面,使用sudo -i或者sudo su进入到root之后再 执行sudo gem install cocoapods  到这里命令行工具就安装好了  command+q退出一下  再重新进入Shell里面 执行sudo gem install cocoapods

3、在执行pod install 就好了

上一篇 下一篇

猜你喜欢

热点阅读