mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() When using SwiftPM, we use `flutter assemble` in an Xcode Pre-action to run the `debug_unpack_macos` (or profile/release) target. This target is also later used in a Run Script build phase. Depending on `ARCHS` build setting, the Flutter/FlutterMacOS binary is thinned. In the Run Script build phase, `ARCHS` is filtered to the active arch. However, in the Pre-action it doesn't always filter to the active arch. As a workaround, assume arm64 if the [`NATIVE_ARCH`](https://developer.apple.com/documentation/xcode/build-settings-reference/#NATIVEARCH) is arm, otherwise assume x86_64. Also, this PR adds a define flag `PreBuildAction`, which gives the Pre-action a [unique configuration of defines]( |
||
---|---|---|
.. | ||
analysis_options.yaml | ||
flutter_tools.dart | ||
fuchsia_asset_builder.dart | ||
fuchsia_tester.dart | ||
macos_assemble.sh | ||
podhelper.rb | ||
tool_backend.bat | ||
tool_backend.dart | ||
tool_backend.sh | ||
xcode_backend.dart | ||
xcode_backend.sh | ||
xcode_debug.js |