Xcode升级9.3之后, 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...

 - RuntimeError - [Xcodeproj] Unknown object version.

   https://github.com/CocoaPods/CocoaPods/issues/7697 [closed] [16 comments]

   a day ago

 - RuntimeError - [Xcodeproj] Unknown object version.

   https://github.com/CocoaPods/CocoaPods/issues/7712 [closed] [9 comments]

   2 weeks ago

 - Unknown object version

   https://github.com/CocoaPods/CocoaPods/issues/7760 [closed] [1 comment]

   a day ago

and 38 more at:

https://github.com/cocoapods/cocoapods/search?q=[Xcodeproj]%20Unknown%20object%20version.&type=Issues&utf8=✓


Pod版本与Xcode版本不兼容

需要升级Xcode


sudo gem update --system

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

你可能感兴趣的:(Xcode升级9.3之后, cocoapods命令报错)