Xcode Cloud: ci_post_clone.sh permission denied iOS Origin: On your device OSI layer 7 · Application Last updated 25 Nov 2026

ci_scripts/ci_post_clone.sh: Permission denied

Xcode Cloud custom scripts must be executable.

Exact message you may see ci_post_clone.sh Permission deniedXcode Cloud custom script not executableci_scripts permission deniedci_scripts/ci_post_clone.sh: Permission denied
Seen on: iOS macOS

Meaning

chmod +x ci_scripts/*.sh and commit with the mode (git update-index --chmod=+x). Scripts live in ci_scripts/ at the repo root.

Common causes

  • Mode not tracked
  • Windows-created file
  • Wrong folder name

⚡ Quick fix

  1. chmod +x ci_scripts/ci_post_clone.sh
  2. Commit the executable bit
  3. Check the folder name

Detailed fix by platform

Shell

  1. swift
    chmod +x ci_scripts/ci_post_clone.sh
    git update-index --chmod=+x ci_scripts/ci_post_clone.sh

How to diagnose

  1. Mode — x?
  2. Folder — ci_scripts?
  3. Name — exact?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

./gradlew: Permission denied — bash: ./gradlew: Permission denied (Android)./gradlew: Permission…/bin/bash^M: bad interpreter — /usr/bin/env: 'bash\r': No such file or directory (Git)/bin/bash^M: bad inte…Azure DevOps: TF401019 / VS403 push rejected — remote: TF401027: You need the GenericContribute permission to perform this action. (Git)Azure DevOps: TF40101…Bitbucket: Branch permissions prevent push — remote: Branch permissions: You are not allowed to push to branch main (Git)Bitbucket: Branch per…Docker Desktop requires privileged access (vmnetd) — macOS: Docker Desktop needs privileged access / com.docker.vmnetd could not be started (macOS)Docker Desktop requir…error: cannot update the ref 'HEAD': unable to append to logs — error: cannot update the ref 'HEAD': unable to append to '.git/logs/HEAD': Permission denied (Git)error: cannot update …error: insufficient permission for adding an object to repository database — error: insufficient permission for adding an object to repository database .git/objects (Git)error: insufficient p…error: open("file"): Permission denied / unable to index file — error: open("data/db.sqlite"): Permission denied error: unable to index file 'data/db.sqlite' fatal: adding files failed (Git)error: open("file"): …Xcode Clo…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.