Sandbox error when compiling iOS with Hermes: "Operation not permitted" and "No such file or directory" (Apple Silicon/Xcode)
Bug Description
I'm experiencing sandbox errors when building a React Native project with Hermes enabled on iOS. The build fails with messages related to the Hermes framework, such as:
Sandbox: rsync(...) deny(1) file-read-data .../hermes.framework/Info.plist Sandbox: rsync(...) deny(1) file-write-create .../hermes.framework/.hermes.XXXX hermes.framework/hermes: utimensat (2): No such file or directory Operation not permitted
Environment:
- macOS: [Sonoma 14.2]
- Xcode: [15.3]
- React Native: 0.81.4
- Hermes: default (bundled with React Native)
- Apple Silicon: [M1]
What I have tried:
- Gave Full Disk Access to Xcode in System Preferences.
- Cleaned Xcode cache (rm -rf ~/Library/Developer/Xcode/DerivedData).
- Ran pod deintegrate and pod install in the ios folder.
- Updated all dependencies with yarn upgrade and pod update.
- Built the project directly in Xcode.
- Tried running Xcode under Rosetta.
- Checked folder permissions with chown.
Detailed log:
Sandbox: rsync(7116) deny(1) file-read-data /Users/fredazevedo/Library/Developer/Xcode/DerivedData/associanet-fnbakryxbfssxlbjmkzzrxdalzcl/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/hermes-engine/Pre-built/hermes.framework/Info.plist Sandbox: rsync(7117) deny(1) file-write-create /Users/fredazevedo/Library/Developer/Xcode/DerivedData/associanet-fnbakryxbfssxlbjmkzzrxdalzcl/Build/Products/Debug-iphonesimulator/associanet.app/Frameworks/hermes.framework/.hermes.h0TkeTJQAi hermes.framework/hermes: utimensat (2): No such file or directory Operation not permitted
Question:
How can I resolve this sandbox error? Is there any extra configuration for Hermes or a workaround for Apple Silicon/Xcode builds?
Hi, unfortunately this (the packaging and how it is consumed by Xcode) is not something that the Hermes team maintains and we can't help. I will ask around.
[!WARNING] Missing reproducer: We could not detect a reproducible example in your issue report. Reproducers are mandatory and we can accept only one of those as a valid reproducer:
- For majority of bugs: send us a Pull Request with the RNTesterPlayground.js edited to reproduce your bug.
- If your bug is UI related: a Snack
- If your bug is build/upgrade related: a project using our Reproducer Template
You can read more about about it on our website: How to report a bug.
cc @cipolleschi
Project - > under Build Settings -> in Build Options, user script sandboxing, change to No.
this setting gets defined/updated when you run the "Update Recommended Settings" in xcode, and it will enable it, and then you have to disable it.
Project - > under Build Settings -> in Build Options, user script sandboxing, change to No.
This worked! (Sept 2025)
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.