I'm using a common code base for two similar apps. I though I set things up so when I chose the second app and then chose archive the new binary would go to the second app. However, the new binary appears in App Store Connect under the first app not the second app. I don't understand this process very well. What should I look at to find the problem?
my build was assigned to the wrong app
Sounds like you conflated the bundleIDs - I'd start there.