解决报错“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",如 ...
最新文章
- scala报错20/08/31 23:48:40 WARN TaskSetManager: Lost task 1.0 in stage 0.0 (TID 1, 192.168.28.94, exec
- Knockout 新版应用开发教程之visible绑定
- sklearn中的fit_transform和transform以及什么时候使用
- 四十二、ETL工具Kettle的转换步骤
- 4.4.6 数组也能无锁:AtomicIntegerArray
- 出现$ref的原因及解决方案
- 都是大人物,看看你认识几个。
- Java自动装箱和拆箱
- 在线医疗和教育,正在争抢未来!
- python实现游戏同步翻译字幕
- Axure RP 8--模板的使用
- HTML5全局属性汇总
- linux桌面版无线鼠标不能用,无线鼠标没反应怎么回事 无线鼠标没反应解决方法...
- 巨杉数据库 java,巨杉Tech|SequoiaDB 巨杉数据库高可用容灾测试
- jquery手写table行列自动计算(自动计算小计和合计)
- CDH6.3.2防止被攻击,打补丁(未授权漏洞)
- 软件对硬盘性能测试,新买的固态硬盘 有哪些软件可以测试性能?
- 数据中心机柜散热解决方案,知道这两点就够了!
- 数字电子技术基础(上)
- 浅谈VMware下安装Linux的网络设置 -- NAT
热门文章
- 前端javascript常见问题总结
- 5G业务测试方法与验证
- open judge 1.8.1
- Java 编程问题:四、类型推断
- 用illustrator、AI将边框线转换为填充形状
- 浅谈单神经元网络PID控制算法及MATLAB仿真
- 读书笔记-精准努力-对待失败的正确思维
- python distance_to_Scipy: how to convert KD-Tree distance from query to kilometers (Python/Pandas)
- 焕然一新的 Vue 3 中文文档要来了
- 看《梦华录》上头的人都该尝试下这款抖音特效