我已经使用cocoapods一段时间了,它的工作非常好,但今天我遇到了一个问题,为我的项目安装pod文件。我在终端中运行安装命令,它似乎无限期挂起。
下面是详细的日志:
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是可行的,但是我无法对Pod项目文件和Workspace文件进行写入访问,因为它是由root创建的。
有人想办法解决这个问题吗?
我在我的Mac上创建了另一个用户配置文件,它运行得很好,但是把其他所有东西都转移到新配置文件对我来说是个麻烦。
发布于 2014-01-30 02:41:31
太丢脸了。这个命令修复了它:
sudo chown -R username:groupname ~/Library/Caches/CocoaPods摘自这一答复:
https://stackoverflow.com/questions/21087997
复制相似问题