我對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