Issue resolved by changing the Xcode version from the latest to 15.0.1 (I changed to this specific version because the project was successfully built on my laptop which has this Xcode version. Maybe other older versions will work too.)
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: