Cocoa pods not working on Mac OS X seirra

I tried printing this line in the terminal "sudo gem install cocoapods -V" "and sudo gem install cocoapods",

And it picks up hundreds of lines after about half an hour in the terminal with an error occurred like the following lines:

ERROR: when running gem ... (Errno :: ENOTDIR) Not directory - / usr / local / bin / pod

I am working on Sierra OS X and I want to use Pods with Xcode. I tried different ways to disable root protection without desire,

In my friend iMac with OS X Capitan I didn't have any problem with cocoapods, it worked fine with me,

please, help

+3


source to share


1 answer


I found a solution by following these steps:

  • open terminal
  • use terminal as root user and type sudo -i
  • enter your password
  • enter this line sudo gem install cocoapods -V


Cocoapods installed success on my mac

to close.

+5


source







All Articles