[pod install] error: cannot open .git/FETCH_HEAD: Permission denied

pod install
Analyzing dependencies
[!] Pod::Executable pull

error: cannot open .git/FETCH_HEAD: Permission denied

*************

http://*.com/questions/16049335/cocoapods-pod-install-permission-denied

I solve this problem by running the following command:

sudo chown -R username.groupname ~/Library/Caches/CocoaPods

and

sudo chown -R username.groupname ~/.cocoapods

Please replace username and groupname with your Mac login username/groupname.

或者

Will-mini:Caches willbin$ sudo chown -R $USER ~/Library/Caches/CocoaPods/
Will-mini:Caches willbin$ sudo chown -R $USER ~/.cocoapods

上一篇:PostgreSQL Replication之第四章 设置异步复制(5)


下一篇:PostgreSQL Replication之第四章 设置异步复制(4)