How to resolve an XCode sandbox build error
![Oscar de la Hera Gomez](https://www.delasign.com/CDN/headshots/profile.webp)
![A flower that represents Xcode with the text "Solve a<br />Sandbox build error" beneath it.](https://www.delasign.com/CDN/images/How-to-resolve-an-XCode-sandbox-build-error.jpg)
In the project's s settings, select the relevant target and under "Build Settings", set "User Script Sandboxing" to No.
An error similar to the one below may occur when running our starter project on Xcode 15+.
..error: Sandbox: cp(6282) deny(1) file-read-data ... (in target 'Starter Project' from project 'Starter Project')
cp: ./.scripts/pre-commit: Operation not permitted
To solve it, turn off User Script Sandboxing in the Build Settings of your project.
![A screenshot of Xcode showing the build settings for the Starter Project target within the project settings. Within the build settings we have searched for "sandbox" and we have highlighted how you can toggle it to say YES or NO. Set it to NO to resolve this error.](https://www.delasign.com/CDN/images/Turn-Off_2023-09-16-205157_tauz.webp)
Any Questions?
We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.