2
我一直在使用cocoapods一段时间,它工作得很好,但今天我有一个问题安装我的项目的pod文件。我在终端中运行安装命令,似乎无限期地挂起它。CocoaPods权限问题
下面是详细日志:
Analyzing dependencies
Updating spec repositories
Updating spec repo `master`
/Library/Ruby/Gems/1.8/gems/cocoapods-0.24.0/lib/cocoapods/executable.rb:55: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/Library/Ruby/Gems/1.8/gems/cocoapods-0.24.0/lib/cocoapods/user_interface.rb:277: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
$ /usr/bin/git pull
Already up-to-date.
CocoaPods 0.29.0 is available.
Downloading dependencies
-> Installing AFNetworking (2.0.3)
> GitHub download
> Creating cache git repo (/Users/abdsaniabdjalal/Library/Caches/CocoaPods/GitHub/a7f129229d47b74a225e1e2ed0bc604f35d71ac7)
/Library/Ruby/Gems/1.8/gems/cocoapods-0.24.0/lib/cocoapods/executable.rb:55: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/Library/Ruby/Gems/1.8/gems/cocoapods-0.24.0/lib/cocoapods/user_interface.rb:277: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
$ /usr/bin/git clone --mirror "https://github.com/AFNetworking/AFNetworking.git"
"/Users/abdsaniabdjalal/Library/Caches/CocoaPods/GitHub/a7f129229d47b74a225e1e2ed0bc604f35d71ac7"
Cloning into bare repository '/Users/abdsaniabdjalal/Library/Caches/CocoaPods/GitHub/a7f129229d47b74a225e1e2ed0bc604f35d71ac7'...
我刚刚升级到了小牛,而我不认为这是有关这个问题,有没有人遇到过这个问题?
编辑: 事实证明,我有权限问题安装窗格到我的项目。
所以我已经尝试使用磁盘工具修复权限。我也尝试在启动时使用密码重置实用程序修复权限,但我仍然遇到此问题。
使用sudo命令安装pod有效,但由于它是由root创建的,因此我没有对Pod项目文件和Workspace文件的写入权限。
任何人有任何想法如何解决这个问题?
我在我的Mac上创建了另一个用户配置文件,它工作正常,但对于我将其他所有内容转移到新配置文件是一件麻烦事。
你可能想看看'这ruby'看到红宝石安装你使用。如果是系统,您可能需要使用'sudo' – MishieMoo
我使用了sudo并且它可以工作,但现在工作空间文件是由root创建的,我没有读写文件的权限。关于我做错了什么的想法? –
[cocoaPods pod install Permission denied]的可能重复(http://stackoverflow.com/questions/16049335/cocoapods-pod-install-permission-denied) –