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>
10 lines
417 B
Text
10 lines
417 B
Text
#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
|