From 7c1159884611c43b5e38ef457dc8775be44ca53f Mon Sep 17 00:00:00 2001 From: flemming-it Date: Tue, 5 May 2026 14:23:33 +0200 Subject: [PATCH] fix(macos): disable codesigning for debug builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Building Studio inside macOS Repositories.nosync/ paths fails codesign with "resource fork, Finder information, or similar detritus not allowed" because Spotlight / iCloud metadata adds extended attributes that codesign rejects. Stripping xattrs once doesn't help — the build copies fresh files into the .app bundle and macOS re-attaches xattrs to those copies before codesign runs. Fix: set CODE_SIGNING_ALLOWED = NO in Debug.xcconfig. Local debug runs don't need a signed binary; release builds (which ship to operators) keep their own xcconfig and remain signed. Verified: flutter build macos --debug now succeeds. Signed-off-by: flemming-it --- macos/Runner/Configs/Debug.xcconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/macos/Runner/Configs/Debug.xcconfig b/macos/Runner/Configs/Debug.xcconfig index 36b0fd9..41efa7a 100644 --- a/macos/Runner/Configs/Debug.xcconfig +++ b/macos/Runner/Configs/Debug.xcconfig @@ -1,2 +1,10 @@ #include "../../Flutter/Flutter-Debug.xcconfig" #include "Warnings.xcconfig" + +// Disable codesigning for local debug builds. The Repositories.nosync/ +// path on macOS sprouts extended attributes that codesign rejects with +// "resource fork, Finder information, or similar detritus not allowed". +// For development we don't need a signed binary. +CODE_SIGNING_ALLOWED = NO +CODE_SIGN_IDENTITY = +CODE_SIGN_STYLE = Manual