无法在我的XCode项目中初始化podfile

时间:2017-12-06 04:08:43

标签: xcode firebase cocoapods

我正在尝试在我的XCode项目中初始化podfile,以便我可以导入Firebase,但是当我运行pod init时,我收到以下错误:

/Users/andrewmcgovern/.rvm/gems/jruby-9.1.7.0/bin/pod init ```

报告

  • 你做了什么?

  • 您期望发生什么?

  • 反而发生了什么?

堆栈

CocoaPods : 1.3.1 Ruby : jruby 9.1.7.0 (2.3.1) 2017-01-11 68056ae Java HotSpot(TM) 64-Bit Server VM 25.92-b14 on 1.8.0_92-b14 +jit [darwin-x86_64] RubyGems : 2.6.8 Host : Mac OS X 10.11.6 (15G17023) Xcode : 8.2.1 (8C1002) Git : git version 2.10.1 (Apple Git-78) Ruby lib dir : /Users/andrewmcgovern/.rvm/rubies/jruby-9.1.7.0/lib Repositories : master - https://github.com/CocoaPods/Specs.git @ 18ffe9708184f46d875a2e7e50bddcc085f8d490

插件

cocoapods-deintegrate : 1.0.1 cocoapods-plugins : 1.0.0 cocoapods-search : 1.0.0 cocoapods-stats : 1.0.0 cocoapods-trunk : 1.3.0 cocoapods-try : 1.1.0

错误

NameError - uninitialized constant Nanaimo::Reader::StringScanner Did you mean? Nanaimo::Reader::StringScanner StringScanner org/jruby/RubyModule.java:3344:in `const_missing' /Users/andrewmcgovern/.rvm/gems/jruby-9.1.7.0@global/gems/nanaimo-0.2.3/lib/nanaimo/reader.rb:96:in `initialize' /Users/andrewmcgovern/.rvm/gems/jruby-9.1.7.0@global/gems/xcodeproj-1.5.3/lib/xcodeproj/plist.rb:27:in `read_from_path' /Users/andrewmcgovern/.rvm/gems/jruby-9.1.7.0@global/gems/xcodeproj-1.5.3/lib/xcodeproj/project.rb:200:in `initialize_from_file' /Users/andrewmcgovern/.rvm/gems/jruby-9.1.7.0@global/gems/xcodeproj-1.5.3/lib/xcodeproj/project.rb:102:in `open' /Users/andrewmcgovern/.rvm/gems/jruby-9.1.7.0/gems/cocoapods-1.3.1/lib/cocoapods/command/init.rb:41:in `validate!' /Users/andrewmcgovern/.rvm/gems/jruby-9.1.7.0@global/gems/claide-1.0.2/lib/claide/command.rb:333:in `run' /Users/andrewmcgovern/.rvm/gems/jruby-9.1.7.0/gems/cocoapods-1.3.1/lib/cocoapods/command.rb:52:in `run' /Users/andrewmcgovern/.rvm/gems/jruby-9.1.7.0/gems/cocoapods-1.3.1/bin/pod:55:in `<main>' org/jruby/RubyKernel.java:979:in `load' /Users/andrewmcgovern/.rvm/gems/jruby-9.1.7.0/bin/pod:1:in `<eval>' org/jruby/RubyKernel.java:1000:in `eval' /Users/andrewmcgovern/.rvm/gems/jruby-9.1.7.0/bin/jruby_executable_hooks:15:in `<main>'

如果您对此有回答或了解另一种更好的导入Firebase的方法,请与我们联系。

0 个答案:

没有答案