Unverified Commit 9a83314c authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Generate dSYM files during iOS archive (#73630)

parent f7e7035a
......@@ -20,14 +20,24 @@ Future<void> main() async {
]);
});
checkDirectoryExists(path.join(
final String archivePath = path.join(
flutterProject.rootPath,
'build',
'ios',
'archive',
'Runner.xcarchive',
);
checkDirectoryExists(path.join(
archivePath,
'Products',
));
checkDirectoryExists(path.join(
archivePath,
'dSYMs',
'Runner.app.dSYM',
));
});
return TaskResult.success(null);
......
......@@ -223,6 +223,7 @@ Future<XcodeBuildResult> buildXcodeProject({
buildCommands.addAll(<String>[
'-workspace', globals.fs.path.basename(entity.path),
'-scheme', scheme,
if (buildAction != XcodeBuildAction.archive) // dSYM files aren't copied to the archive if BUILD_DIR is set.
'BUILD_DIR=${globals.fs.path.absolute(getIosBuildDirectory())}',
]);
break;
......
......@@ -92,7 +92,6 @@ void main() {
'-quiet',
'-workspace', 'Runner.xcworkspace',
'-scheme', 'Runner',
'BUILD_DIR=/build/ios',
'-sdk', 'iphoneos',
'FLUTTER_SUPPRESS_ANALYTICS=true',
'COMPILER_INDEX_STORE_ENABLE=NO',
......
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