# ci_scripts/ci_post_clone.sh: Permission denied

**Code:** `Xcode Cloud: ci_post_clone.sh permission denied` · **Category:** iOS · **Seen on:** iOS, macOS

Xcode Cloud custom scripts must be executable.

## 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?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/ios/xcode-cloud-ci-scripts-not-executable)
