에러

어느 때와 같이 CocoaPod으로 내가 만든 InfoChart라이브러리를 이용하기 위해 터미널에 pod init을 입력했는데 갑자기 에러가 났다

――― 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.10.1 Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20] RubyGems : 3.0.3 Host : macOS 11.3.1 (20E241) Xcode : 13.0 (13A233) Git : git version 2.30.1 (Apple Git-130) Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib Repositories : 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

### Error

RuntimeError - [Xcodeproj] Unknown object version. /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project.rb:227:in `initialize_from_file' /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project.rb:112:in`open' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/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.10.1/lib/cocoapods/command.rb:52:in `run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/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/10984> [closed] [12 comments]
   2 weeks ago

 - Unknown object version
   <https://github.com/CocoaPods/CocoaPods/issues/10973> [closed] [10 comments]
   5 weeks ago

 - RuntimeError - [Xcodeproj] Unknown object version.
   <https://github.com/CocoaPods/CocoaPods/issues/7458> [closed] [21 comments]
   4 weeks ago

and 71 more at:
<https://github.com/cocoapods/cocoapods/search?q=%5BXcodeproj%5D%20Unknown%20object%20version.&type=Issues&utf8=✓>

RuntimeError - [Xcodeproj] Unknown object version. 이라는 에러 문구에 지금 CocoaPods의 버전이 새로운 Xcode의 버전을 못따라가는건가 싶어 Cocoapods을 업데이트 했다.


해결

CocoaPod 업데이트

gem install cocoapods

일단 잘 해결이 되었다. 다음에 또 이 에러에 직면하면 마음 편하게 업데이트를 해야겠다.