解决报错“RuntimeError - [Xcodeproj] Unknown object version.”
在 pod install 时提示错误:
### Error
```
RuntimeError - [Xcodeproj] Unknown object version.
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.15.0/lib/xcodeproj/project.rb:227:in `initialize_from_file'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.15.0/lib/xcodeproj/project.rb:112:in `open'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/analyzer.rb:1177:in `block (2 levels) in inspect_targets_to_integrate'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/analyzer.rb:1176:in `each'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/analyzer.rb:1176:in `block in inspect_targets_to_integrate'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/analyzer.rb:1171:in `inspect_targets_to_integrate'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/analyzer.rb:106:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:410:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:235:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:234:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:156:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
```
原因:Xcode 版本和 CocoaPods 的版本不匹配,需要更新 CocoaPods
解决方法:
终端输入命令
gem install cocoapods --pre
提示错误:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.
加上权限:
sudo gem install cocoapods --pre
再次执行pod install 成功!
解决报错“RuntimeError - [Xcodeproj] Unknown object version.”相关推荐
- 【亲测成功】Ubuntu18.04升级GLIBC2.27——解决报错:ibc.so.6: version `GLIBC_2.28‘ not found
[亲测成功]Ubuntu18.04升级GLIBC2.27--解决报错:/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found 事 ...
- PyTorch——解决报错“RuntimeError: running_mean should contain *** elements not ***”
1 问题描述 在使用PyTorch编程的时候,经常遇到一种报错就是:"RuntimeError: running_mean should contain *** elements not * ...
- simpy报错RuntimeError: <Event() object at 0xxxxxx> has already been triggered
报错原因 已经激活的事件被再次激活,比如 self.test_event = env.event()self.test_event.succeed() self.test_event.succeed( ...
- pod init 报错 can‘t modify frozen String (FrozenError) [Xcodeproj] Unknown object version (56).
执行下面命令 sudo gem update xcodeproj 然后执行 pod init 即可
- Pycharm报错:AttributeError: ‘NoneType‘ object has no attribute ‘_gdal‘的解决办法
Pycharm报错:AttributeError: 'NoneType' object has no attribute '_gdal'的解决办法 解决办法如下: pycharm找到settings ...
- blender报错“RuntimeError: Operator bpy.ops.object.mode_set.poll() Context missing active object”
bpy.ops.mesh.select_all(action='SELECT') 报错 RuntimeError: Operator bpy.ops.object.mode_set.poll() Co ...
- 树莓派4b在miniconda下安装kivy,示例报错‘ImportError...libstdc++.so.6: version ‘GLIBCXX_3.4.29‘ not found‘解决办法
感觉最近运气非常差,或者运气一直很差,为啥干啥都要踩坑呢?好的,又来坑,补吧. 因为想在树莓派4B装了Ubuntu22.04后,能配合我的触摸屏简单实现一些交互界面,所以选择在这上面安装kivy.上一 ...
- 解决fitz模块报错RuntimeError: Directory ‘static/‘ does not exist
报错 fitz模块报错RuntimeError: Directory 'static/' does not exist 原因 使用Python处理PDF文档时,需要使用fitz模块.由于Python ...
- pip/pip3 install 报错 “Could not find a version that satisfies the requriement xxx” 的解决方法
一.问题描述 pip/pip3 install 报错 "Could not find a version that satisfies the requriement xxx",如 ...
最新文章
- 使用MASM04 - Win32汇编语言012
- Android百度地图显示空白(只有格子)的具体真实解决方法
- linux服务器视窗,linux窗口管理器介绍
- vue 中$index $key 已移除
- 如何处理JavaScript中的事件处理(示例和全部)
- mysql 分页 jdbc_JDBC调用MySQL分页存储过程实现(一)
- perl6 HTTP::UserAgent (2)
- 编译原理——实验叁预习报告——基于YACC的TINY语法分析器的构建
- Hibernate学习之一级缓存
- 快速傅立叶变换(FFT)的海面模拟
- PLSQL Developer简单使用及常用快捷键
- 虚拟机打不开磁盘或它所依赖的某个快照磁盘
- 110.Balanced Binary Tree
- Nginx 301重定向域名
- 冒志鸿:大公司不模仿你,说明你危险了
- 黄金圈理论和知识体系
- 程序员追求技术夯实基础学习路线建议
- vpwm的控制变频_变频器调速控制方式和PWM脉宽调整技术有什么不同
- 有道词典工具(命令行+GUI)
- 安全合规/法案--29--《网络安全法》原文及解读