Back to Writing
NOTESflutterxcodeiosbuild-fix
Flutter - Xcode 15 Build Sandbox Error Fix
October 18, 2023•Updated Feb 17, 2026
Error(Xcode): Sandbox: rsync.samba(22856) deny(1) file-write-create ~~~
Error(Xcode): Sandbox: dart(22836) deny(1) file-write-create ~~~
Error(Xcode): Flutter failed to write to a file at "~~".
This is because the Xcode 15 update introduced stricter sandboxing.
The fix is to either use the flutter command with the --output-dir flag or install the latest version of rsync.
In my case, I resolved it by upgrading the version:
- Install the latest version of rsync:
brew install rsync --HEAD
- Find the path to the rsync binary:
which rsync
- Replace the existing rsync with the new one:
sudo cp $(which rsync) /usr/local/Cellar/flutter/3.13.8/bin/rsync
This should resolve the sandbox issue.