Xcode升级13之后, cocoapods命令报错

[!] 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...
/Users/XXX/.rvm/gems/ruby-2.7.0/gems/cocoapods-1.8.0/lib/cocoapods/user_interface/inspector_reporter.rb:80: warning: URI.escape is obsolete
 - RuntimeError - [Xcodeproj] Unknown object version.
   https://github.com/CocoaPods/CocoaPods/issues/10984 [closed] [13 comments]
   4 days ago

/Users/XXX/.rvm/gems/ruby-2.7.0/gems/cocoapods-1.8.0/lib/cocoapods/user_interface/inspector_reporter.rb:80: warning: URI.escape is obsolete
 - Unknown object version
   https://github.com/CocoaPods/CocoaPods/issues/10973 [closed] [10 comments]
   6 weeks ago

/Users/XXX/.rvm/gems/ruby-2.7.0/gems/cocoapods-1.8.0/lib/cocoapods/user_interface/inspector_reporter.rb:80: warning: URI.escape is obsolete
 - RuntimeError - [Xcodeproj] Unknown object version.
   https://github.com/CocoaPods/CocoaPods/issues/7458 [closed] [21 comments]
   5 weeks ago

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


原因:Pod版本与Xcode版本不兼容,按顺序执行下面执行即可。


sudo gem update --system
sudo gem install -n /usr/local/bin cocoapods
 

上一篇:.net core InvalidOperationException: Unable to resolve service for type while attempting to activate


下一篇:[大牛翻译系列]Hadoop(15)MapReduce 性能调优:优化MapReduce的用户JAVA代码