Use Fastlane for fast, continuous updates and a range of issues during installation:
1. Installing the Fastlane:sudo gem install Fastlane
ErrorERROR: Failed to build gem native extension.
--remove http://rubygems.org/-a https://ruby.taobao.org/# View current gem source gem sources* * * * sourceshttp://ruby.taobao.org- -U
Errors still exist;
And then I found out that it was a ruby version.
2. Update the ruby version and install RVM
http://blog.csdn.net/lissdy/article/details/9191351,
Http://stackoverflow.com/questions/3696564/how-to-update-ruby-to-1-9-x-on-mac
Curl-l Get.rvm.io | Bash-s Stable
Test if normal rvm-v is installed
3.RVM Install ruby-2.1.4, report the following error
? ~ git: (master)? RVM Install ruby-2.1.4Searching forBinary rubies, Thismight take some time. Found Remote file https://rvm_io.global.ssl.fastly.net/binaries/osx/10.11/x86_64/ruby-2.1.4.tar.bz2Checking Requirements forOSX./system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/RUBYGEMS/CORE_EXT/KERNEL_REQUIRE.RB: -:inch' Require': Cannot load such file-mach (loaderror) from/system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/RUBYGEMS/CORE_EXT/KERNEL_REQUIRE.RB: -:inch' Require' from/USR/LOCAL/LIBRARY/HOMEBREW/EXTEND/PATHNAME.RB:2:inch' <top (required) >' from/system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/RUBYGEMS/CORE_EXT/KERNEL_REQUIRE.RB: -:inch' Require' from/system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/RUBYGEMS/CORE_EXT/KERNEL_REQUIRE.RB: -:inch' Require' from/usr/local/library/homebrew/Global. RB:3:inch' <top (required) >' from/system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/RUBYGEMS/CORE_EXT/KERNEL_REQUIRE.RB: -:inch' Require' from/system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/RUBYGEMS/CORE_EXT/KERNEL_REQUIRE.RB: -:inch' Require' from/USR/LOCAL/LIBRARY/BREW.RB: -:inch' <main>'ERROR:'/bin' isNot writable-it isRequired forHomebrew,Try 'Brew Doctor'To fix it!Requirements installation failed with status:1.
Then handle this:
$ brew install openssl # if you want to install all dependencies run ‘rvm requirements‘$ rmv reinstall|install ruby-2.1.4
Here's a reference to http://stackoverflow.com/questions/18863211/homebrew-permissions-mess.
Finally, the smooth installation of Fastlane.
[Fastlane] [Gem] [RVM] [Ruby]