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())); |
|
} |
There's a
flutter doctorwarning 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.
flutter/packages/flutter_tools/lib/src/doctor.dart
Lines 580 to 594 in 399ef84