Xcode14 CocoaPads pod install 报错的解决方案

/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface/error_report.rb:34:in `force_encoding’: can’t modify frozen String (FrozenError)
https://img.wangquanwei.com/wp-content/uploads/2023/03/f52920ac00ad06320ec52475180dbd21.png

解决方法

将 Project Document -> Project format 由 Xcode14.0 – compatible 改为 Xcode13.0 – compatible
https://img.wangquanwei.com/wp-content/uploads/2023/03/aaa22a87fa6dcc786d2f644bc3cf754f.png