Cocoapods Installation Error on macOS Sierra 10.12.1

前端 未结 4 633
温柔的废话
温柔的废话 2021-02-15 23:47

I\'m getting this error when i\'m trying to install cocoapods:

$ sudo gem install cocoapods
ERROR:  While executing gem ... (Errno::EPERM)
    Opera         


        
4条回答
  •  感情败类
    2021-02-16 00:25

    I have a similar problem and it solved by using 2nd solution, try to run these commands either in solutions 1 or 2 at terminal

    I'm running osx 10.12.1

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

    Solution 1:

    step 1 : sudo nvram boot-args="rootless=0"

    step 2 : sudo reboot

    step 3 : sudo gem install cocoapods -V

    Solution 2:

    step 1 : sudo gem install -n /usr/local/bin cocoapods

    step 2 : pod setup

提交回复
热议问题