Skip to content

Investigate and eliminate Rosetta requirement from gen_snapshot #188386

Description

@vashworth

There's a flutter doctor warning that prompts you to install Rosetta if gen_snapshot doesn't run properly.

We need to investigate if this is still necessary and if it is, how we can remove the requirement of Rosetta.

final String genSnapshotPath = _artifacts.getArtifactPath(Artifact.genSnapshot);
if (_fileSystem.file(genSnapshotPath).existsSync() && !_genSnapshotRuns(genSnapshotPath)) {
final buffer = StringBuffer();
buffer.writeln(flutterBinariesDoNotRun);
if (_platform.isLinux) {
buffer.writeln(flutterBinariesLinuxRepairCommands);
} else if (_platform.isMacOS &&
_operatingSystemUtils.hostPlatform == HostPlatform.darwin_arm64) {
buffer.writeln(
'Flutter requires the Rosetta translation environment on ARM Macs. Try running:',
);
buffer.writeln(' sudo softwareupdate --install-rosetta --agree-to-license');
}
messages.add(ValidationMessage.error(buffer.toString()));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listt: flutter doctorProblem related to the "flutter doctor" toolteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions