博客> cocoapods插件问题:The command path could not be resolved
cocoapods插件问题:The command path could not be resolved
2017-10-17 01:03 评论:0 阅读:391 Longer_Tao
xcode cocoa pods pod

cocoapods插件工具使用问题

  • 问题现象:The command path could not be resolved  Snip20160604_1.png

  • 解决方法如下
    1.打开终端 2.输入命令:which pod
    3.查看输出路径:/usr/local/bin/pod/usr/bin 4.修改GEM_PATH: 为输出结果 /usr/local/bin 或者 /usr/bin

  • 若输出结果不是上述结果,则可依次执行下面命令(重新安装到指定目录:/usr/local/bin)
    1.sudo gem uninstall cocoapods // 卸载之前的cocoapods 2.sudo gem install -n /usr/local/bin cocoapods // 重新安装
    3.sudo chmod +rx /usr/local/bin/
    4.修改GEM_PATH: 为输出结果 /usr/local/bin
收藏
0
sina weixin mail 回到顶部