2016-02-03 73 views
0

我對ruby,gems等很陌生,但是安裝了fastlane並且安裝的很好。然後,我就遇到了這個問題,爲提供:Broken Fastlane安裝/混合Ruby版本

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 

沒有成功。之後,我嘗試安裝捆綁軟件,一個新的紅寶石版本,並進行清理和重新安裝。沒有成功。現在一切都似乎是在一個糟糕的狀態,並試圖與正常命令

install fastlane --verbose 

導致

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

使用sudo相同的命令安裝FASTLANE給出:

/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

通過安裝解決它

https://rvm.io/

我的命令歷史記錄:

0:沿途

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