-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
M1 Mac Support #16
Comments
@highjeans, The M1 Mac Support can take a bit of time. Currently have no way to build the app on ARM architecture due to github action only supports x86_64 runners. If you've a M1 mac, you can contribute to the project |
I am currently on an M1 Mac, so yes I can do that. |
Can you add me as a contributor? I will need that in order to do anything. |
I don't have to. You can fork the project & then do modifications/enhancements you want to. Then create a PR. |
So I was able to get an arm version compiled, but the way to do it was to change a file that was generated when we ran flutter build macos. |
Seems like we have to wait until building for arm is supported natively as changing the generated file caused tons of errors. |
M1 Mac support is now only not possible due to unavailability of MacOS VM support with M1 hardware in Github Actions actions/runner-images#2187 |
It doesn't matter if M1 hardware is required, it matters if flutter can build an M1 version or a universal version or not |
M1 is supported natively in Flutter we just don't have the hardware/VMs to build the app now |
@KRTirtho I just learned that flutter 3 now build universal binaries, so I think building for m1 should work now |
@highjeans That's great. Can you try running Spotube with Flutter 3 since I don't have a m1 mac? |
@KRTirtho currently the build it's failing because of this I believe: bitsdojo/bitsdojo_window#169 What I did: flutter upgrade
flutter clean
flutter pub get
flutter build macos --release Similar output as: flutter/flutter#103571 (comment) |
@karniv00l There is a pull request regarding the issue: bitsdojo/bitsdojo_window#155 |
@KRTirtho I tried building it through Github Actions and it failed from the same issue in bitsdojo. |
That's great news. Now we've to wait |
M1 Mac support (through Rosetta) was added by #87. Thanks to Flutter 3.0 MacOS Universal binary package support, the M1 Mac executable is available now |
It's been working fine via Rosetta for some time. I believe this issue can be closed, native arm64/universal binary it's a different story though (no M1 machines available yet in GH actions) |
@karniv00l Yeah, native M1 macs gonna take a while |
Glad to hear that.... Thanks 👍 |
Oh yes! You don't actually need M1 to build the universal binary, so the latest release (2.3.0) that I've just tested is actually universal: $ file spotube.app/Contents/MacOS/spotube
spotube.app/Contents/MacOS/spotube: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64
- Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64
- Mach-O 64-bit executable arm64]
spotube.app/Contents/MacOS/spotube (for architecture x86_64): Mach-O 64-bit executable x86_64
spotube.app/Contents/MacOS/spotube (for architecture arm64): Mach-O 64-bit executable arm64 |
Wow, we unknowingly have support for M1 Mac! Maybe that's because Flutter 3.0 now builds & ships Universal Binaries by default. That's just awesome |
Is there a way you can make the app a universal app (aka add support for m1) instead of only an intel app?
Originally posted by @highjeans in #9 (comment)
The text was updated successfully, but these errors were encountered: