How to resolve an XCode sandbox build error

Oscar de la Hera Gomez
A flower that represents Xcode with the text "Solve a<br />Sandbox build error" beneath it.

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. 

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.
delasign logo

Book a Free Consultation.

An icon of an email.

Click here to email us.

Fill in the details below to book a free consultation or to let us know about something else. Whatever it is, we are here to help.

How can we help you ?

Contact Details