flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
10.28k stars 397 forks source link

Flet build MacOS M1 error on M2 #3455

Open donolsch opened 1 month ago

donolsch commented 1 month ago

Hey guys,

When I bundle the .app on my M1 and distribute it to an M2 machine I get the following error upon opening the app. Shouldn't all Silicon builds be compatible? Would be much appreciated if you could look into the attached error report.

Thank you! crash_when_open.txt

FeodorFitsner commented 1 month ago

What command did you use to build it?

donolsch commented 1 month ago

Hi Feodor, thanks for your quick response. Here is the build command I've used:

flet build macos --project "Wrangle Mate" --description "WM" --product "WM" --company "WM" --copyright "WM AU" --build-number 1 --build-version "beta 0.9.7 06/2024"

FeodorFitsner commented 1 month ago

Does it work on M1? Have you tried building and running on M2?

donolsch commented 1 month ago

Yes, it's working on M1 without any issues. I'm not able to try building it on an M2 as I don't have access to an M2 machine. I just thought it would be cross-compatible.

FeodorFitsner commented 1 month ago

It should be cross-compatible by all means, in theory, right? I'm not really sure what to recommend, as I don't have an access to M1 :)

OK, can you try doing a trivial app in Flutter (as you have Flutter SDK already), build it on M1 and then try on M2?