Subject: Xcode Cloud not detecting ci_scripts/ci_post_clone.sh for Flutter iOS build Description: I'm attempting to build a Flutter iOS app using Xcode Cloud, but the build is failing because Xcode Cloud cannot detect my custom build script located at ci_scripts/ci_post_clone.sh in the repository root. Setup:
Repository: https://github.com/GlamTam2000/King-chi-app
Branch: ios-build-legacy
Xcode Project: flutter_application_1/ios/Runner.xcworkspace
Xcode Version specified: 15.4
Issue: The Xcode Cloud build logs consistently show:
Post-Clone script not found at ci_scripts/ci_post_clone.sh
However, the script file is confirmed to exist in the repository:
The file is committed and pushed to GitHub (commit 9bd3aa1)
Local git verification: git ls-tree HEAD ci_scripts/ shows the file exists
File permissions: 100755 (executable)
File location: Repository root /ci_scripts/ci_post_clone.sh
What I've tried:
Created ci_scripts/ci_post_clone.sh at repository root with executable permissions
Ensured Unix line endings (LF, not CRLF)
Removed macOS extended attributes
Tried both ci_post_clone.sh and ci_pre_xcodebuild.sh scripts
Created empty commits to force Xcode Cloud to fetch latest changes
Verified the file exists locally and in git history
Why I need this script: Flutter requires running flutter build ios --release --no-codesign before Xcode can build, which generates the FlutterGeneratedPluginSwiftPackage that Xcode depends on. Without this script running, the build fails with:
Could not resolve package dependencies: the package at '.../FlutterGeneratedPluginSwiftPackage' cannot be accessed
Question: Why is Xcode Cloud not detecting the ci_scripts/ci_post_clone.sh file even though it exists in the repository root? Is there a specific configuration in App Store Connect or a Xcode Cloud workflow setting that needs to be enabled for custom scripts to run? Additional files in repository (also not working):
.xcode-version at repository root (specifying 15.4)
.xcodecloud.yml at repository root (with workflow configuration)
Any guidance on how to make Xcode Cloud properly detect and execute custom build scripts would be greatly appreciated.
This gives Apple Support all the key information they need to help diagnose why the scripts aren't being detected.