pod install 初始化失败 RuntimeError - [Xcodeproj] Unknown object version.

Pod 报错信息

[!] 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...
Searching for inspections failed: Failed to open TCP connection to api.github.com:443 (getaddrinfo: nodename nor servname provided, or not known)
localhost:FF jisa$ pod install
Analyzing dependencies

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

### Command

/usr/local/bin/pod install


### Report

* What did you do?

* What did you expect to happen?

* What happened instead?


### Stack

CocoaPods : 1.10.0
Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18]
RubyGems : 3.0.3
Host : macOS 12.0.1 (21A559)
Xcode : 13.2 (13C5066c)
Git : git version 2.32.0 (Apple Git-132)
Ruby lib dir : /Users/jisa/.rbenv/versions/2.6.3/lib
Repositories : coding-mobiledoctor-winningmodulelibs - git - https://e.coding.net/mobiledoctor/WinningModuleLibs.git @ 11c0604f4a7ef13fea74a468a3629c62c3b739c0

           master - git - https://github.com/CocoaPods/Specs.git @ 220f432728a86b2e1d8dc00b0af51838a003eb95

           ngarihealth-ios-space - git - http://lintao@gitlab.ngarihealth.com/lintao/ios-space.git @ 7194b2929a5715f830744546af6d15f0f8895d75

           trunk - CDN - https://cdn.cocoapods.org/

### Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-trunk : 1.5.0
cocoapods-try : 1.2.0


### Podfile

```ruby
platform :ios, '10.0'

target 'FF' do
   pod 'SDWebImage', '~> 5.12.1'
end

Error

RuntimeError - [Xcodeproj] Unknown object version.
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project.rb:227:in `initialize_from_file'
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project.rb:112:in `open'
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:1186:in `block (2 levels) in inspect_targets_to_integrate'
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:1185:in `each'
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:1185:in `block in inspect_targets_to_integrate'
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/user_interface.rb:64:in `section'
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:1180:in `inspect_targets_to_integrate'
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:106:in `analyze'
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:414:in `analyze'
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/user_interface.rb:64:in `section'
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:238:in `resolve_dependencies'
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:160:in `install!'
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/command/install.rb:52:in `run'
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/command.rb:52:in `run'
/Users/jisa/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.10.0/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=[Xcodeproj]+Unknown+object+version.&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

# 报错原因:
## platform :ios, '10.0';即Podfile中指定的版本好,和工程的版本号比对不上,检查下Project Format中指定的版本号。如下图
![截图](https://img2020.cnblogs.com/blog/1158789/202201/1158789-20220101215734719-502634084.png)
posted @ 2022-01-01 21:54  jisa  阅读(337)  评论(0编辑  收藏  举报