We were facing same issue with custom schemes in Flutter app. Was running fine with default runner configuration, but there was an issue with our uat flavor.
By updating the "Override Architecture" to "Use Target Settings" in "Edit Schemes" worked for us.