2

我正在尝试按照此处的说明在 El Capitan GM 上安装 Cocoapods: https ://github.com/CocoaPods/CocoaPods/issues/3692#issuecomment-113847612

每当我尝试运行“pod”命令时,它都会说找不到它。一切都在它应该在的地方,我不知道出了什么问题。我的终端符不是最强的。这是我的终端窗口的转储。

Last login: Tue Sep 15 15:39:29 on ttys000
Shinji:~ Joey$ sudo gem update --system
Latest version currently installed. Aborting.
Shinji:~ Joey$ 
Shinji:~ Joey$ sudo gem install cocoapods
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/xcodeproj
Shinji:~ Joey$ mkdir -p $HOME/Software/ruby
Shinji:~ Joey$ export GEM_HOME=$HOME/Software/ruby
Shinji:~ Joey$ gem install cocoapods
Fetching: xcodeproj-0.26.3.gem (100%)
Successfully installed xcodeproj-0.26.3
Fetching: fuzzy_match-2.0.4.gem (100%)
Successfully installed fuzzy_match-2.0.4
Fetching: cocoapods-core-0.38.2.gem (100%)
Successfully installed cocoapods-core-0.38.2
Fetching: cocoapods-0.38.2.gem (100%)
Successfully installed cocoapods-0.38.2
Parsing documentation for xcodeproj-0.26.3
Installing ri documentation for xcodeproj-0.26.3
Parsing documentation for fuzzy_match-2.0.4
Installing ri documentation for fuzzy_match-2.0.4
Parsing documentation for cocoapods-core-0.38.2
Installing ri documentation for cocoapods-core-0.38.2
Parsing documentation for cocoapods-0.38.2
Installing ri documentation for cocoapods-0.38.2
4 gems installed
Shinji:~ Joey$ export PATH=$PATH:$HOME/Sofware/ruby/bin
Shinji:~ Joey$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/Joey/Sofware/ruby/bin
Shinji:~ Joey$ pod --version
-bash: pod: command not found
Shinji:~ Joey$ 
4

0 回答 0