pod init 报错

今天创建项目在终端输入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 就行了
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • ――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――...
    Paladiners阅读 4,170评论 0 0
  • 笔记在执行pod init时报错如下:――― MARKDOWN TEMPLATE ――――――――――――――――...
    IMKel阅读 9,423评论 1 5
  • 直接贴报错的返回的错的提示:suomalideMacBook-Pro:YouQianbao suomali$ po...
    qingchen91阅读 19,235评论 0 7
  • 新建一个工程时,想使用pod导入几个第三方库,但是遇到了下面的问题: ――― MARKDOWN TEMPLATE ...
    coderxiaoqin阅读 5,835评论 0 1
  • 今天是九月的最后一天,突然间发现时间过的太快了,一眨眼半年过去了,睿宝儿今天也开心的放假了,昨天晚上就跟我说今天要...
    睿妈儿阅读 1,517评论 0 0

友情链接更多精彩内容