-
Notifications
You must be signed in to change notification settings - Fork 955
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
Apple Silicon Desktop Support #3553
base: main
Are you sure you want to change the base?
Conversation
Someone please check this PR and get it merged, Waiting for official universal builds for mac. |
I believe this was blocked by this issue: #2606 (comment) as per @mweststrate However, it seems that a fix just landed upstream in Electron: So hopefully this can be resolved soon. Flipper is very unpleasant to use on M1 macs right now. |
Yeah that is definitely good news! We'll wait for the stable release and proceed from there. Note that the whole issue can be avoided btw if you run the Flipper browser version: |
Can someone please revise this PR? |
@passy Do we have an ETA on this? My mac reports Flipper as high battery consumer and its probably related to simulation/rosetta. This change would be much appreciated! |
Any luck with this guys? Would help a lot M1 based macs |
4af1296
to
0076c83
Compare
Another ping on this. Please let me know if there are any changes needed. |
I think pinging @lblasa might be the right way :) |
We'll have hackathon in a couple of weeks at we will take a new attempt :) For the adventurous; we have experimental |
Pull Request Test Coverage Report for Build 3014555494
💛 - Coveralls |
Apple Silicon support has been on my list for a while now. As @mweststrate mentioned, we have a hackathon in a couple of weeks in which we can definitely try and make this happen :) |
Hey @mweststrate I tried
The right location is:
I have The page it opens isn't working though. Gets stuck on "Loading..." and there's this in the browser's console. Relevant code (seems to try to access |
@aarongrider you're the man! Thank you so much. I was astonished to learn that there can be no official M1 builds in 2022. I made a quick tutorial on how to run your fork for folks like me, i.e. using Apple machines as dev tools out of necessity and not that experienced with the Mac ecosystem. https://dev.to/limal/speed-boost-to-flipper-debugger-on-apple-m1-1gh |
@lblasa What do we need to test/do to get this further along? Flipper performs quite poorly overall so M1 support would make a significant difference to the debugging experience and thus the overall RN experience. |
0076c83
to
b1c6ffb
Compare
Hey @aarongrider I was using v145 (universal build from your repo). However after updating the code to latest one I am unable to create new build:
Any suggestion or help will be appreciated !! thank you for this work |
@umangloria you can add |
* added PortForwardingMacApp project target * updated Podfiles * updated electron builder to 22.14.10 * updated electron to 16.0.3 * added universal architecture to the build process
@lblasa has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
I apologise for the delay on this one. I've just taken the changes locally and will review shortly. |
@lblasa Any update on this please? |
This is currently in the pipeline. We are considering switching from PortForwardingMacApp to just use idb. idb already has port forwarding and is a hard dependency for debugging apps on a device so it just makes sense to simplify our approach. I will share an update as soon as there is one :) |
Could someone please push this forward? Debugging with Flipper is a pain in Apple Silicon macs. It is probably the slowest app on my mac right now, and is the only app that hasn't had any Apple Silicon native builds. |
Hey @lblasa , can you help with the above please? |
Created a GitHub workflow that cherry-picks the author's (@aarongrider) PR on every flipper releases with a minor patch(electron universal - 1.3.4). Repo: https://github.com/chiragramani/FlipperReleases and the releases section has the universal binary. Hope this is helpful until Meta distributes a universal Flipper binary. |
Amazing work, It seems the repo is private, Could you please change it to public ? |
Oh, thanks, made it public! |
Any updates on this? I've been using the excellent repo provided by @chiragramani but builds have started failing for the second time in the last month or so and would love to see an official release. |
Hi @lblasa! Just wanted to +1 @markholland above, would love to better understand the state of official M1 support since the alt repos for arm64 binaries aren't working quite right. You mentioned it was in the pipeline back in September 2022, so it's been over a year now. Any updates would be much appreciated! And thanks to you and all the other contributors for your hard work on Flipper! 🙏 |
Summary
This is an updated version of @colinbendell's PR here + build fixes and package.json changes: #3120
Apple Silicon Mac's do not run Flipper natively, instead using Rosetta to emulate.
The Electron builder only produces x86_64 builds and the PortForwardingApp is precompiled and committed in the code base with an x64 build.
This PR adds universal building of the electron app and the PortForwardingMacApp.
Addresses:
Changelog
Test Plan
yarn build --mac
kind
isApple
in Activity Monitor