Updating to Cocoapods 1.13.0 fixed the issue for me and no need for this anymore:
https://stackoverflow.com/questions/77136958/flutter-xcode-15-error-xcode-dt-toolchain-dir-cannot-be-used-to-evaluate-libr
Post
Replies
Boosts
Views
Activity
This worked for me when everything else failed
https://stackoverflow.com/questions/77136958/flutter-xcode-15-error-xcode-dt-toolchain-dir-cannot-be-used-to-evaluate-libr