Can not perform `pod install` under el capitan (15A279b)

后端 未结 6 560
独厮守ぢ
独厮守ぢ 2020-12-12 12:10

I ran pod install with El Capitan and got this error:

Errno::EPERM - Operation not permitted - /Users/../Pods/Pods.xcodeproj/xcuserdata/root.xcu         


        
相关标签:
6条回答
  • 2020-12-12 12:20

    You previously opened Xcode under root access.

    Just delete /Pods/Pods.xcodeproj/xcuserdata/root.xcuserdatad folder and continue pod install

    0 讨论(0)
  • 2020-12-12 12:21

    I am using rvm and I install using the following command:

    gem install cocoapods -n /usr/local/bin

    then pod install

    0 讨论(0)
  • 2020-12-12 12:32

    Installing CocoaPods on OS X 10.11

    These instructions were tested on all betas and the final release of El Capitan.

    Custom GEM_HOME

    This is the solution when you are receiving the "Operation not permitted" error.

    $ mkdir -p $HOME/Software/ruby
    $ export GEM_HOME=$HOME/Software/ruby
    $ gem install cocoapods
    [...]
    1 gem installed
    $ export PATH=$PATH:$HOME/Software/ruby/bin
    $ pod --version
    0.38.2
    
    0 讨论(0)
  • 2020-12-12 12:35

    I found -bash: pod: command not found Just do it in terminal

    sudo gem install cocoapods
    
    0 讨论(0)
  • 2020-12-12 12:42

    Solution, fix for Cocoapods error on El Capitan 10.11:

    sudo gem install -n /usr/local/bin cocoapods
    
    0 讨论(0)
  • 2020-12-12 12:44

    I had to update the system before 'gem install' otherwise I got this:

    ERROR: Error installing cocoapods: activesupport requires Ruby version >= 2.2.2.:

    Here's what worked for me:

    gem update --system
    sudo gem install -V -n /usr/local/bin cocoapods
    pod install
    

    I actually needed to just update:

    pod update
    
    0 讨论(0)
提交回复
热议问题