-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Ship apple silicon dart SDK binaries now that Dart 2.14.0-281.0.dev and higher have arm64 builds available for download #86926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Any update on this issue? |
Same issue here! I couldn't found any solution yet 🥺 |
@chinmaygarde is it trivial to build our own engine that would use the AS binary for dart? Seems like we would just need to check |
If anyone has a workaround we can use in the meantime, I would be happy to try it out. There are issues running unit tests with the intel binaries using rosetta, where some tests fail:
Turning on coverage calculation causes other rosetta-related errors to print as well. Because of this I need to always run my test suite on an intel mac to be sure it's passing. |
Are there any estimates for when we can plan to expect this? |
Flutter 2.5.0 is supposed to run dart with arm64 support but I'm still having the same problem, were you able to solve it? |
That’s just for the simulator running in native apple silicon, not the dart build command(s). |
Oh that was disappointed, I understood wrong thanks of this topic https://medium.com/dartlang/announcing-dart-2-14-b48b9bb2fb67 |
Is there any update or plan to implement this soon? With Apple's macbook event next week, even more people will be upgrading to M1 macs soon. |
Looking into it, seems like the flutter repo doesn't download the public dart archive zips and uses a different url. Example:
I tried simply replacing
Is the flutter engine building dart each time and we need to modify it there to also build for darwin arm64? I tried to look but |
This is expected because when you replace the dart-sdk with the arm64 one it is not compatible with the way the Flutter engine has been built. |
Thanks. So the issue seems to be that we have to build the flutter engine from an arm64 mac in order to build a compatible copy of dart (with the required build flags), but per my issue here I'm unable to build it following the engine wiki with my error reported. dart-lang/sdk#47511 So this is not as simple as including some pre-built dart binaries like I thought when submitting this issue. We first need to be able to build the flutter engine from an arm64 macos host. @dnfield would it be worth me filing a separate issue about being unable to build the flutter engine on an apple silicon mac, or does that fall under this issue of making it available for download? |
@zanderso would know |
This issue can probably be deduped against one of the issues we already have filed around native tooling support on M1, probably #60118. The arm64 Dart SDK for macOS will be shipped with Flutter as a component of solving that issue. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Reopening and making this a subtask of #60118. Work on this is ongoing: |
Apple Silicon Dart SDK is available since flutter-2.11-candidate.7 % ./bin/flutter --version
Flutter 2.10.0-1.0.pre.345 • channel flutter-2.11-candidate.7 • https://github.com/flutter/flutter
Framework • revision a0abb7e89e (3 days ago) • 2022-01-31 16:05:20 -0500
Engine • revision 800afbf27a
Tools • Dart 2.17.0 (build 2.17.0-69.0.dev) • DevTools 2.10.0-dev.1
% file bin/cache/dart-sdk/bin/dart
bin/cache/dart-sdk/bin/dart: Mach-O 64-bit executable arm64 |
hey thx. that totally worked! |
I see what you mean. I've tried using the 2.11 release candidate, which
shows as an apple process in the activity monitor. But android debugs
resulted in crashes, which is why I am back with 2.10 until the apple
builds become more stable.
Thx for all the great work!
…On Sat, 5 Feb 2022, 01:00 Zachary Anderson, ***@***.***> wrote:
@Sunbreak <https://github.com/Sunbreak> @anzbert
<https://github.com/anzbert> I think flutter upgrade will get you the
right bits, but there's some more infra work needed (#97658
<#97658>) to get the arm64 Dart
SDK into the Flutter SDK archives on the website. Thanks for your patience.
—
Reply to this email directly, view it on GitHub
<#86926 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJIGOFGXD5S24JAC2YPMCYLUZQA3DANCNFSM5A3VULXA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@anzbert Please file new issues for any crashers you're seeing in 2.11. Thanks! |
Shipped on beta channel now: https://github.com/flutter/flutter/releases/tag/2.11.0-0.1.pre |
hmm i still get plenty of intel processes in the 2.11 beta in the activity monitor. running flutter-2.11-candidate.11 at the moment and that is only using apple processes and works fine for me. |
wangkun42@wangkun42s-MacBook-Pro flutter-beta % git log -1
commit b101bfe32f634566e7cb2791a9efe19cf8828b15 (HEAD -> beta, tag: 2.11.0-0.1.pre, origin/flutter-2.11-candidate.7, origin/dev, origin/beta)
Author: godofredoc <godofredoc@google.com>
Date: Wed Feb 16 07:36:54 2022 -0800
'Update Engine revision to e3559935720ea88dfcdf9079c394ffdb5146ceab for beta release 2.11.0-0.1.pre' (#98561)
@anzbert You'd better close any IDE or process using Dart Language Server and start with the new Dart SDK |
i think that did it. i just rebooted and switched channel again + flutter upgrade . thx @Sunbreak !! |
@zanderso this is done, right? Or did you want to wait until it's reached stable? |
This is done. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Hi- I have been following the apple silicon support progress for quite some time now. Just the other day the Dart team announced apple silicon arm64 builds are now available on the dev/beta channels: dart-lang/sdk#42773 (comment)
The latest flutter dev channel
2.4.0-4.0.pre
is shipping dart2.14.0-301.0.dev
which does have an arm64 build available:But Flutter is still shipping just the x86_64 binary:
Here's how the
file
command output looks for a native AS arm64 binary:Related (but unable to comment): #60118
The text was updated successfully, but these errors were encountered: