flipperdevices / flipperzero-ufbt

Compact tool for building and debugging applications for Flipper Zero.
https://pypi.org/project/ufbt/
GNU General Public License v3.0
573 stars 38 forks source link

Add support for Apple Silicon #35

Closed zigad closed 8 months ago

zigad commented 8 months ago

It would be really great if you could add native support for Apple Silicon chips (ARM) so we can use ufbt without Rosetta2.

user@MacBook-M3-Pro ~ % ufbt
20:03:59.133 [I] Deploying SDK for f7
20:03:59.133 [I] Fetching version info for UpdateChannel.RELEASE from https://update.flipperzero.one/firmware/directory.json
20:03:59.419 [I] Using version: 0.98.3
20:03:59.419 [I] uFBT SDK dir: /Users/zigad/.ufbt/current
20:04:00.530 [I] Deploying SDK
20:04:00.651 [I] SDK deployed.
Flipper Zero Toolchain needs Rosetta2 to run under Apple Silicon
Please install it by typing 'softwareupdate --install-rosetta --agree-to-license'
hedger commented 8 months ago

New toolchain versions supporting both Linux & Mac on ARM are coming in the next release. You can already give them a try on 'dev' branch, however, there are known issues with them.

zigad commented 8 months ago

I tried to use letest version from dev branch but I still got notification I need to install Rosetta.

Successfully built ufbt
Installing collected packages: ufbt
Successfully installed ufbt-0.2.5.dev1
user@MacBook-M3-Pro ~ % ufbt                                                
Flipper Zero Toolchain needs Rosetta2 to run under Apple Silicon
Please install it by typing 'softwareupdate --install-rosetta --agree-to-license'

I'll just wait for next release ☺️

hedger commented 8 months ago

@zigad toolchain version depends on the installed SDK, not ufbt version. ufbt itself is just a downloader and wrapper for SDK scripts.

Please try ufbt update -c dev.

zigad commented 8 months ago

@hedger thank you very much for explanation! This is now working flawlessly.

Thank you for helping.