diff --git a/packages/flutter_tools/lib/src/macos/xcode.dart b/packages/flutter_tools/lib/src/macos/xcode.dart index 60b549d1f8..72bb6db859 100644 --- a/packages/flutter_tools/lib/src/macos/xcode.dart +++ b/packages/flutter_tools/lib/src/macos/xcode.dart @@ -174,7 +174,7 @@ class Xcode { /// tools and properties. /// /// Returns `xcrun` on x86 macOS. - /// Returns `/usr/bin/arch -arm64 xcrun` on ARM macOS to force Xcode commands + /// Returns `/usr/bin/arch -arm64e xcrun` on ARM macOS to force Xcode commands /// to run outside the x86 Rosetta translation, which may cause crashes. List xcrunCommand() { final List xcrunCommand = []; @@ -182,7 +182,7 @@ class Xcode { // Force Xcode commands to run outside Rosetta. xcrunCommand.addAll([ '/usr/bin/arch', - '-arm64', + '-arm64e', ]); } xcrunCommand.add('xcrun'); diff --git a/packages/flutter_tools/test/general.shard/macos/xcode_test.dart b/packages/flutter_tools/test/general.shard/macos/xcode_test.dart index eb18bdbddd..439c6494a6 100644 --- a/packages/flutter_tools/test/general.shard/macos/xcode_test.dart +++ b/packages/flutter_tools/test/general.shard/macos/xcode_test.dart @@ -265,7 +265,7 @@ void main() { expect(xcode.xcrunCommand(), [ '/usr/bin/arch', - '-arm64', + '-arm64e', 'xcrun', ]); expect(fakeProcessManager.hasRemainingExpectations, isFalse);