应该是关于gem版本的问题,直接运行brew reinstall cocoapodsbrew link --overwrite cocoapods如果还不行建议先运行下面的命令在运行上面的rm '/usr/local/bin/pod'