Unverified Commit d6fbfdb9 authored by Core's avatar Core Committed by GitHub

Include debug symbol in xcframework when building iOS-framework (#80065)

parent 8920f7a5
......@@ -310,6 +310,17 @@ Future<void> _testBuildIosFramework(Directory projectDir, { bool isModule = fals
'DeviceInfoPlugin.h',
));
if (mode != 'Debug') {
checkDirectoryExists(path.join(
outputPath,
mode,
'device_info.xcframework',
localXcodeArmDirectoryName,
'dSYMs',
'device_info.framework.dSYM',
));
}
final String simulatorFrameworkPath = path.join(
outputPath,
mode,
......@@ -333,6 +344,14 @@ Future<void> _testBuildIosFramework(Directory projectDir, { bool isModule = fals
checkFileExists(simulatorFrameworkHeaderPath);
}
checkDirectoryExists(path.join(
outputPath,
'Release',
'device_info.xcframework',
localXcodeArmDirectoryName,
'BCSymbolMaps',
));
section('Check all modes have generated plugin registrant');
for (final String mode in <String>['Debug', 'Profile', 'Release']) {
......
......@@ -525,7 +525,15 @@ end
'-create-xcframework',
for (Directory framework in frameworks) ...<String>[
'-framework',
framework.path
framework.path,
...framework.parent
.listSync()
.where((FileSystemEntity entity) =>
entity.basename.endsWith('bcsymbolmap') ||
entity.basename.endsWith('dSYM'))
.map((FileSystemEntity entity) =>
<String>['-debug-symbols', entity.path])
.expand<String>((List<String> parameter) => parameter)
],
'-output',
outputDirectory.childDirectory('$frameworkBinaryName.xcframework').path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment