Fastlane损坏的安装/混合Ruby版本

问题描述 投票:0回答:2

我对红宝石,宝石等还不陌生,但安装并安装了fastlane的过程非常好。然后,我遇到了要交付的问题:

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

没有成功。之后,我尝试安装捆绑器,新的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

ruby fastlane
2个回答
3
投票

通过安装解决

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


0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.