美文网首页
pod init 报错

pod init 报错

作者: 原味丿丿咖啡Vitas | 来源:发表于2018-11-02 18:05 被阅读0次

今天创建项目在终端输入pod init 后报错,错误如下

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Command

/Users/tantanwei/.rvm/gems/ruby-2.3.0/bin/pod init

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.4.0.beta.1
        Ruby : ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin16]
    RubyGems : 2.6.13
        Host : Mac OS X 10.14 (18A391)
       Xcode : 10.0 (10A255)
         Git : git version 2.17.1 (Apple Git-112)
Ruby lib dir : /Users/tantanwei/.rvm/rubies/ruby-2.3.0/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ d556718064259afde401cd466d3e035ac5a60d08
               Specs - https://github.com/CocoaPods/Specs @ 12da91ace4cc536860abe544bdfc6765a7c29873

Plugins

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

Error

RuntimeError - [Xcodeproj] Unknown object version.
/Users/tantanwei/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.2/lib/xcodeproj/project.rb:217:in `initialize_from_file'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.2/lib/xcodeproj/project.rb:102:in `open'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/command/init.rb:41:in `validate!'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/gems/claide-1.0.2/lib/claide/command.rb:333:in `run'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/command.rb:52:in `run'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.4.0.beta.1/bin/pod:55:in `<top (required)>'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/bin/pod:23:in `load'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/bin/pod:23:in `<main>'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=%5BXcodeproj%5D+Unknown+object+version.&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...

and 43 more at:
https://github.com/cocoapods/cocoapods/search?q=[Xcodeproj]%20Unknown%20object%20version.&type=Issues&utf8=

原因是创建项目时 image.png

这里默认为9.3了,这时只要改为8.0


image.png
再次pod init 就行了

相关文章

网友评论

      本文标题:pod init 报错

      本文链接:https://www.haomeiwen.com/subject/xmicxqtx.html