带有pod init的未初始化的常量Bundler

时间:2016-10-07 21:32:56

标签: cocoapods bundler

我正在尝试在新的xcode项目中运行pod init。但是我收到了错误:

.rvm/gems/ruby-2.2.3/gems/bundler-1.13.2/lib/bundler/rubygems_ext.rb:45:in `full_gem_path': uninitialized constant Bundler::Plugin::API::Source (NameError)
    from /Users/nicholasstephan/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/basic_specification.rb:144:in `block in full_require_paths'
    from /Users/nicholasstephan/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/basic_specification.rb:143:in `map'
    from /Users/nicholasstephan/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/basic_specification.rb:143:in `full_require_paths'
    from /Users/nicholasstephan/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/basic_specification.rb:76:in `contains_r

我已经多次使用sudo gem install bundler重新安装了bundler。

这是rvm问题吗?这是怎么回事?

感谢。

1 个答案:

答案 0 :(得分:3)

尝试运行gem updategem cleanup。我认为这个问题出现在bundler 1.13.0上。