今天学习持续集成安装fastlane的时候遇到了鸡儿权限的问题
和这篇文章的权限差不多CocoaPods安装出现SSL verification error
安装这篇文章修改了下,嗯?pod命令不好使了,然后我按照这篇文章重新安装了cocoapods,CocoaPods安装方法-2018.03.27
2017最新CocoaPods安装
遇到下面问题:
Kikyo-2:~ kikyo$ sudo gem install -n /usr/local/bin cocoapods
GemWrappers: Can not wrap missing file: pod
GemWrappers: Can not wrap missing file: sandbox-pod
Successfully installed cocoapods-1.5.2
Parsing documentation for cocoapods-1.5.2
Done installing documentation for cocoapods after 2 seconds
1 gem installed
Kikyo-2:~ kikyo$ pod setup
-bash: pod: command not found
sudo gem install -n /usr/local/bin cocoapods 报错
GemWrappers: Can not wrap missing file: pod
GemWrappers: Can not wrap missing file: sandbox-pod
然后pod命令无法识别
找了好多方法,gem卸载cocoapods+重装+降低Ruby版本都试了不行,
然后看底下评论和我一个问题
使用sudo gem install -n /usr/local/bin cocoapods 更新cocoapods 报错,用sudo gem install cocoapods 这个更新就好了,真奇怪!
复制代码