-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Description
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?