1、pod install 报错信息:
➜ TZHealth git:(master) ✗ pod install
Analyzing dependencies
[!] The version of CocoaPods used to generate the lockfile (1.11.2) is higher than the version of the current executable (1.10.0). Incompatibility issues may arise.
2、REPORT
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
```
/usr/local/bin/pod install
```
### Report
* What did you do?
* What did you expect to happen?
* What happened instead?
3、### Stack
```
CocoaPods : 1.10.0
Ruby : ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.x86_64-darwin21]
RubyGems : 3.1.2
Host : macOS 12.3 (21E230)
Xcode : 13.2.1 (13C100)
Git : git version 2.32.0 (Apple Git-132)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : cocoapods - git - https://github.com/CocoaPods/Specs.git @ 73c9b2f2ba37eacd55447d5cece333ee03cb1921
edu-git-cocoapods-specs - git - https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git @ 32ade586e52fa68fd4a7891c10c9ad7201bfc529
hlwyySpecs - git - http://10.18.101.167:8081/xingjie/hlwyyspecs.git @ 527b0bcc00748d2719828107bd043c500a300b1c
zdww-specs - git - http://10.18.101.167:8081/xingjie/hlwyyspecs.git @ 527b0bcc00748d2719828107bd043c500a300b1c
```
4、报错信息
[!] 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...
- Pod init failed on M1 Mac macOS Ventura 13.0 beta1
https://github.com/CocoaPods/CocoaPods/issues/11406 [open] [3 comments]
a week ago
- RuntimeError - [Xcodeproj] Unknown object version.
https://github.com/CocoaPods/CocoaPods/issues/7458 [closed] [24 comments]
a day ago
- An error occurred when executing pod init
https://github.com/CocoaPods/CocoaPods/issues/11434 [closed] [1 comment]
a day ago
and 77 more at:
https://github.com/cocoapods/cocoapods/search?q=%5BXcodeproj%5D%20Unknown%20object%20version.&type=Issues&utf8=✓
5、原因分析:
Mac进行了系统版本升级,需要对cocoapods升级;
6、解决方法:
$ sudo gem update--system
$ sudo gem install cocoapods -n/usr/local/bin