首页 > 其他 > 详细

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

时间:2014-02-14 18:52:41      阅读:2164      评论:0      收藏:0      [点我收藏+]

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

error: cannot open .git/FETCH_HEAD: Permission denied

 

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

http://stackoverflow.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

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

原文:http://www.cnblogs.com/willbin/p/3548676.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!