问题: pod init 失败,报错如下:

shenheping@shenhepingdeMacBook-Pro-2 iCar % pod init
Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1 ――― MARKDOWN TEMPLATE ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ### Command ```
/usr/local/bin/pod init
``` ### Report * What did you do? * What did you expect to happen? * What happened instead? ### Stack ```
CocoaPods : 1.9.3
Ruby : ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.x86_64-darwin21]
RubyGems : 3.0.3.1
Host : macOS 12.2.1 (21D62)
Xcode : 13.4.1 (13F100)
Git : git version 2.32.1 (Apple Git-133)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : master - git - https://github.com/CocoaPods/Specs.git @ ba914f27169ecca6373d37c4e0d2ae83f9946f93 mPaaS_iOS_specs - git - https://code.aliyun.com/mpaas-public/podspecs.git @ 660c18e699b9faba4cdfeea89e691d10b8efb74f MyProjectSpec - git - https://git.coding.net/shpyoucan666/TestCocospadsSpec.git @ 9e26f7ba771621b5886e7db3883b6e995a4b6dab trunk - CDN - https://cdn.cocoapods.org/
``` ### Plugins ```
cocoapods-deintegrate : 1.0.4
cocoapods-mPaaS : 0.9.5
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.1.0
cocoapods-trunk : 1.5.0
cocoapods-try : 1.2.0
``` ### Error ```
RuntimeError - [Xcodeproj] Unknown object version.
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.17.1/lib/xcodeproj/project.rb:227:in `initialize_from_file'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.17.1/lib/xcodeproj/project.rb:112:in `open'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command/init.rb:41:in `validate!'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:333:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23: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...
- RuntimeError - [Xcodeproj] Unknown object version.
https://github.com/CocoaPods/CocoaPods/issues/7458 [closed] [24 comments]
5 weeks ago - Pod init failed on M1 Mac macOS Ventura 13.0 beta1
https://github.com/CocoaPods/CocoaPods/issues/11406 [closed] [6 comments]
4 weeks ago - RuntimeError - [Xcodeproj] Unknown object version.
https://github.com/CocoaPods/CocoaPods/issues/10746 [closed] [2 comments]
01 May 2022 and 77 more at:
https://github.com/cocoapods/cocoapods/search?q=%5BXcodeproj%5D%20Unknown%20object%20version.&type=Issues&utf8=✓

解决方案:终端输入如下命令

sudo gem update xcodeproj --pr

最新文章

  1. 第6章 DOM节点操作
  2. Android开发学习之路-Service和Activity的通信
  3. PHPCMS 标签与示例
  4. 数据结构-Vector
  5. TemplateBinding vs TemplatedParent【PluraSight】
  6. 剑指OFFER之变态跳台阶(九度OJ1389)
  7. HTML5游戏开发框架phaser学习日志(一)下载phaser,在IIS中配置phaser的examples站点
  8. Android下如何理解onMeasure,onLayout的过程
  9. java 笔试
  10. Flume介绍
  11. 04_Linux目录文件操作命令1(mv ls cd...)_我的Linux之路
  12. xpath技术解析xml以及案例模拟用户登录效果
  13. 【机器学习笔记一】协同过滤算法 - ALS
  14. Python day 05
  15. JSJ——主数据类型和引用
  16. Django深度剖析-二
  17. manjaro使用国内软件源
  18. React系列文章:Babel编译JSX生成代码
  19. Tf中的NCE-loss实现学习【转载】
  20. [Bayesian] “我是bayesian我怕谁”系列 - Naive Bayes with Prior

热门文章

  1. 鸣人的影分身(等级考试4级 2021-03 T3)
  2. Symbol.iterator 迷惑行为
  3. 用ChatGPT,绘制一个账号系统的C4架构图
  4. Apache Hudi 负载类Payload使用案例剖析
  5. Python学习方向
  6. 设备区分判断IPAD,H5,PC
  7. Atcoder题解:Arc156_c
  8. PostGIS之几何有效性
  9. 【C++复习】运算符优先级(简)
  10. Linux学习之文件目录指令(部分)