Well, it happened for me after renaming the project. It is just a wrong setting in the Appstoreconnect Xcode Cloud tab. For me it was in the Actions Archive - IOS section, Scheme dropdown. I have selected the correct scheme and build succeeded.
Topic:
Developer Tools & Services
SubTopic:
Xcode Cloud
Tags: