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

@@ -51,8 +51,10 @@ void main() {
);
binary = environment.outputDir
.childDirectory('FlutterMacOS.framework')
.childFile('FlutterMacOS');
.childDirectory('FlutterMacOS.framework')
.childDirectory('Versions')
.childDirectory('A')
.childFile('FlutterMacOS');
copyFrameworkCommand = FakeCommand(
command: <String>[
@@ -109,7 +111,7 @@ void main() {
throwsA(isException.having(
(Exception exception) => exception.toString(),
'description',
contains('FlutterMacOS.framework/FlutterMacOS does not exist, cannot thin'),
contains('FlutterMacOS.framework/Versions/A/FlutterMacOS does not exist, cannot thin'),
)),
);
}, overrides: <Type, Generator>{
@@ -155,7 +157,7 @@ void main() {
await const DebugUnpackMacOS().build(environment);
expect(logger.traceText, contains('Skipping lipo for non-fat file /FlutterMacOS.framework/FlutterMacOS'));
expect(logger.traceText, contains('Skipping lipo for non-fat file /FlutterMacOS.framework/Versions/A/FlutterMacOS'));
});
testUsingContext('thins fat framework', () async {