flutteractionsbot a0bde754cf
[CP-stable][native_assets] Fix macOS host build failure when there are no frameworks to sign. (#153967)
### Issue Link:
https://github.com/flutter/flutter/issues/153842
(also duplicate https://github.com/flutter/flutter/issues/153268)

### Changelog Description:
Fixes macOS host build failure when there are no native asset frameworks to codesign

### Impact Description:
macOS apps may fail to build with the error: `*.framework: No such file or directory`.

### Workaround:
1. Use the the master or beta (3.25.0-0.1.pre) channels.
2. Some users report `flutter clean` temporarily unwedged them.

### Risk:
What is the risk level of this cherry-pick?

### Test Coverage:
Are you confident that your fix is well-tested by automated tests?

### Validation Steps:

From PR https://github.com/flutter/flutter/pull/150742
To reproduce this build failure:
1. Enable native assets in the Flutter tool: `flutter config --enable-native-assets`
2. Create a Flutter project with the default template: `flutter create test_native_assets`
3. Add a build hook that does nothing (`hook/build.dart`).
4. Try to build/run the app: `flutter run --debug -d macos`

Expect the build to succeed.
2024-08-26 18:45:16 +00:00
..