fastlane安装问题

今天在安装fastlane以后总是提示下面这个超级蛋疼的问题

/usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems.rb:270:in `find_spec_for_exe': can't find gem fastlane (>= 0.a) (Gem::GemNotFoundException)
    from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems.rb:298:in `activate_bin_path'
    from /usr/local/bin/fastlane:22:in `
'

感觉总是提示fastlane从另外一个路径运行,所以运行不成功.
导致fastlan运行pob_lib_lint就是不成功

/Users/heew/.rvm/gems/ruby-2.4.0@global/gems/bundler-1.15.3/lib/bundler/rubygems_integration.rb:432:in `block in replace_bin_path': can't find executable pod for gem cocoapods. cocoapods is not currently included in the bundle, perhaps you meant to add it to your Gemfile? (Gem::Exception)
[22:53:59]: ▸ from /Users/heew/.rvm/gems/ruby-2.4.0@global/gems/bundler-1.15.3/lib/bundler/rubygems_integration.rb:452:in `block in replace_bin_path'
[22:53:59]: ▸ from /Users/heew/.rvm/gems/ruby-2.4.0/bin/pod:23:in `
' [22:53:59]: ▸ from /Users/heew/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `eval' [22:53:59]: ▸ from /Users/heew/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `
'

无比蛋疼啊.后来我把fastlane全部删掉.使用最普通的安装方式

gem install fastlane

居然成功了,再打fastlane actions一切都好了.
所以对于我而言,官方建议的
sudo gem install fastlane -NV
以及一篇博客Fastlane入门:安装篇里建议的
sudo gem install -n /usr/local/bin fastlane

都不合适.
蛋疼啊,搞了一下午就一晚上.

你可能感兴趣的:(fastlane安装问题)