Software⏱️ 3 min read📅 2026-06-03

How to Fix: error while build iOS app in Xcode : Sandbox: rsync.samba (13105) deny(1) file-write-create, Flutter failed to write to a file

Error occurs due to sandbox restrictions on macOS. Downgrading the operating system may not resolve the issue.

Quick Answer: Try updating Xcode and Flutter to the latest versions, as the issue might be resolved in recent updates.

Error while building iOS app in Xcode: Sandbox: rsync.samba (13105) deny(1) file-write-create, Flutter failed to write to a file occurs when the Xcode or Visual Studio Code development environment cannot write files to the sandbox directory due to a denied permission. This error affects developers who use Xcode and Visual Studio Code for building iOS apps on macOS 14.0 beta devices with M1 Pro processors.

This issue can be frustrating as it prevents the app from being built successfully, causing delays in development and deployment. Fortunately, there are steps you can take to resolve this issue.

💡 Why You Are Getting This Error

  • The primary reason for this error is that the sandbox directory has denied permission for file-write-create operations. This can occur due to various reasons such as outdated or corrupted system files, conflicting security settings, or issues with the Xcode or Visual Studio Code installation.
  • An alternative cause could be related to the Flutter framework version used in the project, which may have compatibility issues with the sandbox directory permissions.

✅ Best Solutions to Fix It

Resolving Sandbox Permissions Issues

  1. Step 1: Step 1: Open the Terminal app on your macOS 14.0 beta device and run the command `sudo launchctl unload /System/Library/LaunchAgents/com.apple.sandbox.plist` to unload the sandbox configuration.
  2. Step 2: Step 2: Run the command `sudo launchctl load /Library/LaunchAgents/com.apple.sandbox.plist` to reload the sandbox configuration with updated permissions.
  3. Step 3: Step 3: Restart Xcode or Visual Studio Code and attempt to build the iOS app again.

Downgrading macOS

  1. Step 1: Step 1: Open the Terminal app on your macOS 14.0 beta device and run the command `sudo /usr/bin/rpm --import http://mirror.apple.com/Security/Security Updates/` to check for any available security updates.
  2. Step 2: Step 2: If an update is available, install it by running the command `sudo /usr/bin/rpm --install `.
  3. Step 3: Step 3: After installing the update, restart your device and attempt to build the iOS app again.

🎯 Final Words

To resolve the error 'Error while building iOS app in Xcode: Sandbox: rsync.samba (13105) deny(1) file-write-create, Flutter failed to write to a file', try resolving sandbox permissions issues by following the steps outlined in Method 1 or downgrading your macOS operating system using Method 2. If you are still experiencing issues, consider seeking further assistance from Apple support or a qualified IT professional.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions