Skip to content

Commit

Permalink
Copy the macOS podspec during builds (flutter#9158)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stuartmorgan authored Jun 1, 2019
1 parent 68a3ca4 commit 4c6253c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions shell/platform/darwin/macos/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
}

Expand Down

0 comments on commit 4c6253c

Please sign in to comment.