fix(macos): disable codesigning for debug builds

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 <stefan.a.flemming@googlemail.com>
This commit is contained in:
flemming-it 2026-05-05 14:23:33 +02:00
parent a173eec1d0
commit 7c11598846

View file

@ -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