-
Notifications
You must be signed in to change notification settings - Fork 13
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
Distribute arm64 binaries for Apple Silicon Macs #38
Comments
EDIT: This issue has gotten a lot of attention so I would like to clear up some misconceptions.
|
You should consider switching to Github Actions which is free for open-source projects like yours ! |
GitHub Actions sucks, CircleCI gives me a ton of free credit but M1 macs cost an obscene amount of credit on both |
If you say so, after all it's your project, just bare in mind that every new Macbook uses and will use arm64 so x86_64 is basically obsolete. |
This is critical. Because puro downloads the x86 binary, it runs I'm happy to help you with github actions 😃 |
That's odd, puro should be installing the arm version of Flutter if you have an M1 mac. You can double check by running If it prints x86 then there is a bug in Puro and I would need to see logs of |
This looks like an issue with the flutter tool, possibly running puro w/ rosetta is setting some environment variables that tricks the Flutter tool into thinking the target architecture is x64 😢 |
I've pushed a fix in Puro 1.3.8, the flutter tool should now correctly detect arm64 and use the correct engine artifacts. @passsy try again and let me know if that worked, thanks for bringing it to my attention! |
Just tested it, it works 🚀 My Flutter macos app is now running as Apple binary, not in Rosetta mode anymore
puro binary is still Sorry @gaetschwartz for highjacking this issue for another problem |
I'm with bad cpu in executable in version 1.3.8 I'm using a M2 |
@scorpionslh could you provide logs with |
i solved installing rosetta, thanks for all |
Well if the engine downloaded is now the right one (arm64), the fact purpose is in x64 isn't that much an issue, feel free to close the issue 😊 |
Maybe this issue should be kept open. Every dev on Apple Silicon has to install rosetta to be able to use It's solvable with the installer, but unnecessary. What about developers on arm64 systems other than apple? I bet devs on a raspberry pi would love to use puro |
I will add arm64 Linux binaries when Flutter starts supporting arm64 Linux :) You also need Rosetta for some build tools, cocoapods if I recall correctly |
@ryanaidilp What is the exact error you get? I believe flutter's support for arm64 wasn't added until version 3.0.0 |
That's the problem. I have no issue previously when using version 2.10.5 on my mac. But after upgrade my puro and flutter stable environment, when I go back to my old project using 2.10.5 it always said that |
Ahh, that's definitely a bug, it's running |
any solution on this issue? |
@ryanaidilp could you do |
After updating Puro from the master branch, it's oddly working now. I didn't even need to execute any commands; just running |
Nice! I'll push a release then. |
Have you pushed the release yet? I cannot install 2.10.5 on my m1 mac now. |
What version of Puro are you using? |
It was old. Upgraded, now fixed. Ship it! |
Is this resolved in the current version? |
Fort now the installer only downloads and the CI only builds for x64 but Apple has been transitioning to arm64. I think it would be a good idea to also do.
The text was updated successfully, but these errors were encountered: