CocoaPods `pod install` error: cannot open FETCH_HEAD: permission denied

My question is very similar to this other [1] (but I am opening a new one because the accepted answer to it does not seem to work for me).

In short, when I run pod install , I always get this error: [!] Pod::Executable remote update - error: cannot open FETCH_HEAD: Permission denied .

When I read this other question, I started using RVM, and actually, when I run which ruby , I get /Users/myuser/.rvm/rubies/ruby-2.0.0-p247/bin/ruby and I check double and triple. I am the common owner of this entire installation. There is no root.

As I also read, the problem may have something to do with Git, I also updated it, and when I run which git , I get /usr/local/git/bin/git , and I also own it. There is no root.

In question [1], user 1054503 commented that he solved the same problem chown'ing /Users/myuser/.cocoapods/master , so I tried this too, but nothing works. So I'm mostly stuck.

Any idea please

[1] cocoaPods pod install Permission denied

+6
source share
2 answers

I assume your cache is located in ~/Library/Caches/CocoaPods . Try to do it too.

+18
source

I ran into the same problem and resolved it with chown'ing ~/Library/Caches/CocoaPods/ and ~/.cocoapods .

+2
source

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


All Articles