Fast Fastlane安装/混合Ruby版本

时间:2016-02-03 11:04:20

标签: ruby fastlane

我对红宝石,宝石等都很陌生,但是安装了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

没有成功。之后我尝试安装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

2 个答案:

答案 0 :(得分: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

答案 1 :(得分:0)

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

相关问题