已经安装了cocoapods的情况下 1.将Android Studio 关闭 2.运行 open /Applications/Android\ Studio.app 参考 彻底解决 CocoaPods not installed or not in valid state