There's a suggestion here: https://stackoverflow.com/questions/72561696/xcode-14-needs-selected-development-team-for-pod-bundles
Basically, you need to update your Podfile to make the changes you are applying manually.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: