用 Xcode16 新创建了一个项目 执行 pod init报错信息如下
[!] The specification of arguments as a string has been deprecated Pod::Command::Lint: `NAME`
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
/Users/xxx/.rbenv/versions/3.0.3/bin/pod init
### Report
* What did you do?
* What did you expect to happen?
* What happened instead?
### Stack
CocoaPods : 1.15.2
Ruby : ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [arm64-darwin23]
RubyGems : 3.5.7
Host : macOS 15.0.1 (24A348)
Xcode : 16.0 (16A242d)
Git : git version 2.45.2
Ruby lib dir : /Users/xx/.rbenv/versions/3.0.3/lib
### Plugins
claide-plugins : 0.9.2
cocoapods-deintegrate : 1.0.5
cocoapods-dependency-flatten : 0.1.4
cocoapods-devpod-lint : 0.0.2
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.1
cocoapods-trunk : 1.6.0
cocoapods-try : 1.2.0
cocoapods-xcremotecache : 0.0.18
### Error
RuntimeError - `PBXGroup` attempted to initialize an object with unknown ISA `PBXFileSystemSynchronizedRootGroup` from attributes: `{"isa"=>"PBXFileSystemSynchronizedRootGroup", "exceptions"=>["50F9EE372CCA43E900CAE872"], "explicitFileTypes"=>{}, "explicitFolders"=>[], "path"=>"SolarDemo", "sourceTree"=>"<group>"}`
解决方式如下图
可以看到是 cocoapods 解析 PBXFileSystemSynchronizedRootGroup出了问题
结论
cocoapods 不怎么维护了 尽快切到swift package manager吧