Software⏱️ 2 min read📅 2026-05-31

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

Xcode and Flutter errors on macOS 14.0 beta with M1 Pro processor.

Quick Answer: Try updating Xcode to the latest version, as the issue might be resolved in a recent update.

The error you're encountering when building an iOS app in Xcode and Flutter is due to a permissions issue with the 'rsync.samba' process. This process is used by some apps to sync files between devices, but it's not necessary for your project.

🔍 Why This Happens

  • [Cause]

🚀 How to Resolve This Issue

Method 1: Disable Samba

  1. Step 1: Open the Terminal on your Mac and type `sudo launchctl unload /System/Library/LaunchAgents/com.apple.smb.server.plist` to disable Samba.

Method 2: Use a Different File System

  1. Step 1: In your Flutter project, open the `pubspec.yaml` file and add `file_system: samba` to the `dependencies` section.

✨ Wrapping Up

By following these steps, you should be able to resolve the 'rsync.samba' issue and successfully build your iOS app in Xcode.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions