1.尽量使用brew安装
2.如果出现了JSON::ParserError - 416: unexpected 类型错误,那么直接
rm -rf ~/.cocoapods/repos/trunk
然后重新pod install
若报错can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException),那么sudo gem uninstall cocoapods,gem install cocoapods 两步走,搞定
参考:解决 can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException) - 腾讯云开发者社区-腾讯云