forked from firka/flutter
Prevent flutter build ios-framework --xcframework from copying Flutter.xcframework.dSYM into the App.framework folder. (#157394)
Fixes https://github.com/flutter/flutter/issues/157359 Prevents Flutter.xcframework.dSYM from being copied into the App.framework folder. I am not 100% positive if there are cases where it's valid to have multiple dSYMs in that folder, so I'm just string matching and filtering out `Flutter.xcframework.dSYM`
This commit is contained in:
@@ -188,15 +188,25 @@ Future<void> _testBuildIosFramework(Directory projectDir, { bool isModule = fals
|
||||
'vm_snapshot_data',
|
||||
));
|
||||
|
||||
final String dsymPath = path.join(
|
||||
outputPath,
|
||||
mode,
|
||||
'App.xcframework',
|
||||
'ios-arm64',
|
||||
'dSYMs'
|
||||
);
|
||||
checkDirectoryExists(dsymPath);
|
||||
|
||||
final String appFrameworkDsymPath = path.join(
|
||||
outputPath,
|
||||
mode,
|
||||
'App.xcframework',
|
||||
'ios-arm64',
|
||||
'dSYMs',
|
||||
'App.framework.dSYM'
|
||||
dsymPath,
|
||||
'App.framework.dSYM'
|
||||
);
|
||||
checkDirectoryExists(appFrameworkDsymPath);
|
||||
|
||||
if (Directory(dsymPath).listSync().whereType<Directory>().length != 1) {
|
||||
throw TaskResult.failure('App.framework/dSYMs should ONLY contain App.xcframework.dSYM');
|
||||
}
|
||||
|
||||
await _checkDsym(path.join(
|
||||
appFrameworkDsymPath,
|
||||
'Contents',
|
||||
|
||||
Reference in New Issue
Block a user