From ea35ff30c0a396aefc615ac48a40cfd2105af997 Mon Sep 17 00:00:00 2001 From: stuartmorgan Date: Fri, 31 May 2019 17:22:09 -0700 Subject: [PATCH] Copy the macOS podspec during builds (flutter/engine#9158) The podspec must be copied to the build output root, otherwise --local-engine won't work in projects containing plugins. Mirrors the iOS podspec copy rule. --- .../src/flutter/shell/platform/darwin/macos/BUILD.gn | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/engine/src/flutter/shell/platform/darwin/macos/BUILD.gn b/engine/src/flutter/shell/platform/darwin/macos/BUILD.gn index 5e23c421b9..5a8295d2f5 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/macos/BUILD.gn @@ -200,9 +200,20 @@ action("_generate_symlinks") { ] } +copy("copy_framework_podspec") { + visibility = [ ":*" ] + sources = [ + "framework/FlutterMacOS.podspec", + ] + outputs = [ + "$root_out_dir/FlutterMacOS.podspec", + ] +} + group("flutter_framework") { deps = [ ":_generate_symlinks", + ":copy_framework_podspec", ] }