most likely the flutter was not built by xcode cloud, try ci_post_clone.sh script
https://docs.flutter.dev/deployment/cd#custom-build-script
Topic:
Developer Tools & Services
SubTopic:
Xcode Cloud
Tags: