How to resolve an XCode sandbox build error

In the project's s settings, select the relevant target and under "Build Settings", set "User Script Sandboxing" to No.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 09/16/2023 at 15:31
Last Updated on 09/16/2023 at 17:17
<p>A flower that represents Xcode with the text "Solve a<br />Sandbox build error" beneath it.</p>

In the project's s settings, select the relevant target and under "Build Settings", set "User Script Sandboxing" to No.

Subscribe

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

View Repository

To solve it, turn off User Script Sandboxing in the Build Settings of your project.

<p>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. </p>

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.
SubscribeContact UsVisit our BlogView our ServicesView our Work

Partner with us

We would love to get to know you and see how we can help your organization with its goals and needs.
Let's Talk

Stay Informed

Get occasional updates about our company, research, and product launches.
Subscribe