Generate dSYM files during iOS archive (#73630)
This commit is contained in:
@@ -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,7 +223,8 @@ Future<XcodeBuildResult> buildXcodeProject({
|
||||
buildCommands.addAll(<String>[
|
||||
'-workspace', globals.fs.path.basename(entity.path),
|
||||
'-scheme', scheme,
|
||||
'BUILD_DIR=${globals.fs.path.absolute(getIosBuildDirectory())}',
|
||||
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',
|
||||
|
||||
Reference in New Issue
Block a user