Reland "Add FlutterMacOS.xcframework artifact (#143244)" (#144275)

Reland https://github.com/flutter/flutter/pull/143244. It was reverted due to https://github.com/flutter/flutter/issues/144251, which is fixed by https://github.com/flutter/engine/pull/51023.
This commit is contained in:
Victoria Ashworth
2024-02-28 14:09:54 -06:00
committed by GitHub
parent f89b4f151e
commit 39a13539e0
11 changed files with 321 additions and 82 deletions

View File

@@ -118,6 +118,12 @@ class PluginTest {
// Currently this test is only implemented for macOS; it can be extended to
// others as needed.
if (buildTarget == 'macos') {
// When using a local engine, podhelper.rb will search for a "macos-"
// directory within the FlutterMacOS.xcframework, so create a dummy one.
Directory(
path.join(buildDir.path, 'FlutterMacOS.xcframework/macos-arm64_x86_64'),
).createSync(recursive: true);
// Clean before regenerating the config to ensure that the pod steps run.
await inDirectory(Directory(app.rootPath), () async {
await evalFlutter('clean');