Cocoapods installation error on macOS Sierra 10.12.1

I get this error when I try to install cocoapods :

 $ sudo gem install cocoapods ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/fuzzy_match 

I have gem version 2.6.7 installed, macOS 10.12.1 can someone help please .. or do you have instructions for installing cocoapods on 10.12.1

+5
source share
3 answers

I have a similar problem, and it is solved using the 2nd solution, try to execute these commands either in solutions 1 or 2 on the terminal

I am running osx 10.12.1

ERROR: while executing gem ... (Errno :: EPERM) Operation not allowed - / 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

+14
source

check pod version using below command

 pod --version 

if any version is installed, uninstall it using the command

 sudo gem uninstall cocoapods 

restart your Mac and reinstall it using the command

 sudo gem install -n /usr/local/bin cocoapods 
+5
source

On MAC OS Sierra 10.12.2, the following steps solve my problem: -

actions:

  • reboot sudo
  • sudo gem install -n / usr / local / bin cocoapods
  • pod setup
  • cd specific path
  • pod update
0
source

Source: https://habr.com/ru/post/1258828/


All Articles