美文网首页
Xcode9 Cocoapos 报错 Generating Po

Xcode9 Cocoapos 报错 Generating Po

作者: 帆123 | 来源:发表于2017-09-25 16:56 被阅读63次

自从升级到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 就好了

相关文章

网友评论

      本文标题:Xcode9 Cocoapos 报错 Generating Po

      本文链接:https://www.haomeiwen.com/subject/gnjdextx.html