我现在需要安装Cocoapods 。gem的镜像一景更换为淘宝的了。
执行sudo gem install cocoapods出现错误:

ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/xcodeproj

我估计是gem版本没有更新。执行sudo gem update --system,又出现了错误

ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/update_rubygems

估计是升级系统和安装Xcode7 之后cocoapods不好使了 得升级 一下是解决方案:

自定义GEM_HOME
命令行操作:
$ mkdir -p $HOME/Software/ruby
$ export GEM_HOME=$HOME/Software/ruby
$ gem install cocoapods
  [...]
  1 gem installed
$ export PATH=$PATH:$HOME/Sofware/ruby/bin
$ pod --version
  0.39.0

相关文章:

  • 2021-11-03
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2022-12-23
  • 2021-09-07
相关资源
相似解决方案