I am using xCode 16. Perhaps it's because these solutions worked for an earlier version, but whatever the reason, none worked for me. Then I came upon this issue CocoaPods did not set the base configuration ... which was another error that was seen. The solution there was to remove the configurations, see link for more.