Update by @christopherfujino
This was caused by a bug in the script that generates the SDK packages for the website not properly handling symlinks. If your current install is affected, you can fix it by:
- Downloading the latest stable or beta packages from the website.
- Issuing the command:
$ rm -rf path/to/flutter/bin/cache/artifacts/engine/darwin-x64*in your flutter repo, to delete the bad artifacts. The next time you issue
flutter build, the tool will identify that the artifacts are missing, and re-download them correctly.
I am new to Flutter. I am trying to follow the steps in Test Drive to build a macOS app, but the
macos_assemble.sh script is failing:
codesign --force --verbose --sign - -- /Users/peter/flutter/myapp/build/macos/Build/Products/Debug/myapp.app/Contents/Frameworks/FlutterMacOS.framework/FlutterMacOS /Users/peter/flutter/myapp/build/macos/Build/Products/Debug/myapp.app/Contents/Frameworks/FlutterMacOS.framework/FlutterMacOS: replacing existing signature /Users/peter/flutter/myapp/build/macos/Build/Products/Debug/myapp.app/Contents/Frameworks/FlutterMacOS.framework/FlutterMacOS: bundle format is ambiguous (could be app or framework)
flutter create myapp
- choose macOS
System is macOS 11.2.1, Xcode 12.4 (12D4e), Intel MBP
Verbose logs are at this gist