Adjust lipo thinning input/output for macOS (#97111)

This commit is contained in:
Zachary Anderson
2022-01-24 10:21:22 -08:00
committed by GitHub
parent 0978b96ecd
commit 761b109bc8
2 changed files with 12 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ abstract class UnpackMacOS extends Target {
@override
List<Source> get outputs => const <Source>[
Source.pattern('{OUTPUT_DIR}/FlutterMacOS.framework/FlutterMacOS'),
Source.pattern('{OUTPUT_DIR}/FlutterMacOS.framework/Versions/A/FlutterMacOS'),
];
@override
@@ -67,7 +67,11 @@ abstract class UnpackMacOS extends Target {
);
}
final File frameworkBinary = environment.outputDir.childDirectory('FlutterMacOS.framework').childFile('FlutterMacOS');
final File frameworkBinary = environment.outputDir
.childDirectory('FlutterMacOS.framework')
.childDirectory('Versions')
.childDirectory('A')
.childFile('FlutterMacOS');
final String frameworkBinaryPath = frameworkBinary.path;
if (!frameworkBinary.existsSync()) {
throw Exception('Binary $frameworkBinaryPath does not exist, cannot thin');