解决报错“RuntimeError - [Xcodeproj] Unknown object version.”

本文讲述了在使用CocoaPods安装Pod时遇到的`Unknown object version`错误,通过更新Cocoapods到预发布版本并解决权限问题,成功安装的解决过程。

在 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/Gem

Uncaught (in promise) TypeError: error.response is undefined <anonymous> request.js:30 promise callback*_request Axios.js:163 request Axios.js:40 method Axios.js:213 wrap bind.js:5 setup Home.vue:181 callWithErrorHandling runtime-core.esm-bundler.js:199 setupStatefulComponent runtime-core.esm-bundler.js:7907 setupComponent runtime-core.esm-bundler.js:7868 mountComponent runtime-core.esm-bundler.js:5216 processComponent runtime-core.esm-bundler.js:5182 patch runtime-core.esm-bundler.js:4700 componentUpdateFn runtime-core.esm-bundler.js:5326 run reactivity.esm-bundler.js:225 setupRenderEffect runtime-core.esm-bundler.js:5454 mountComponent runtime-core.esm-bundler.js:5229 processComponent runtime-core.esm-bundler.js:5182 patch runtime-core.esm-bundler.js:4700 mountChildren runtime-core.esm-bundler.js:4932 mountElement runtime-core.esm-bundler.js:4855 processElement runtime-core.esm-bundler.js:4820 patch runtime-core.esm-bundler.js:4688 mountChildren runtime-core.esm-bundler.js:4932 mountElement runtime-core.esm-bundler.js:4855 processElement runtime-core.esm-bundler.js:4820 patch runtime-core.esm-bundler.js:4688 mountChildren runtime-core.esm-bundler.js:4932 mountElement runtime-core.esm-bundler.js:4855 processElement runtime-core.esm-bundler.js:4820 patch runtime-core.esm-bundler.js:4688 componentUpdateFn runtime-core.esm-bundler.js:5326 run reactivity.esm-bundler.js:225 setupRenderEffect runtime-core.esm-bundler.js:5454 mountComponent runtime-core.esm-bundler.js:5229 processComponent runtime-core.esm-bundler.js:5182 patch runtime-core.esm-bundler.js:4700 componentUpdateFn runtime-core.esm-bundler.js:5406 run reactivity.esm-bundler.js:225 runIfDirty reactivity.esm-bundler.js:263 callWithErrorHandling runtime-core.esm-bundler.js:199 flushJobs runtime-core.esm-bundler.js:408 promise callback*queueFlush r
最新发布
03-16
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值