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