1

我对 ruby​​、gems 等还是很陌生,但安装和设置得非常好。然后我遇到了这个问题进行交付:

https://github.com/fastlane/deliver/issues/349

我尝试更新到最新版本的 fastlane,但后来遇到了这个问题:

https://github.com/fastlane/fastlane/issues/567

ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/sigh

我试过了

gem update -n /usr/local/bin fastlane
gem update -n /usr/local/bin sigh
gem update -n /usr/local/bin deliver

没有成功。这些只会导致我出现这个错误:

Unable to activate deliver-1.9.0, because plist-3.2.0 conflicts with plist (~> 3.1.0 ...

我也试过

sudo su
sudo gem install fastlane --verbose
exit

没有成功。之后我尝试安装 bundler,一个新的 ruby​​ 版本并进行清理和重新安装。没有成功。现在一切似乎都处于不良状态并尝试使用正常命令安装 fastlane

install fastlane --verbose

导致

You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

与 sudo 相同的命令给出:

/usr/local/lib/ruby/gems/2.3.0/gems/snapshot-1.6.0/lib/snapshot/version.rb
ERROR: While executing gem ... (TypeError)
no implicit conversion of nil into String

该怎么办??

ruby -v给我ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]echo $PATH给我/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

4

2 回答 2

4

通过安装解决了

https://rvm.io/

我的命令历史:

brew install gnupg gnupg2
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --ruby
source /Users/xxx/.rvm/scripts/rvm
gem install fastlane --verbose
xcode-select --install
gem cleanup
gem update -p
rvm reinstall ruby-2.2.3 --with-openssl-dir=/usr/local
gem install fastlane --verbose

一路走来的一个问题:

https://github.com/fastlane/fastlane/issues/745

于 2016-02-03T11:37:30.223 回答
0

sudo gem install -n /usr/local/bin fastlane

于 2020-03-04T03:05:29.483 回答