Canister SDK on Apple M1 chip machine

Hi,
what are your experience regarding IC with the Apple M1 chip?

  • Is the Canister SDK (dfx) running under this architect?
  • What are you experience on that kind of platform?

Thanks.

1 Like
  • it already has been fixed. so dfx can running under M1 corrently if you install the Rosetta provided by Apple official.
  • For over a year, I’ve only had this problem with the M1: In the past, the rust in the ic repository required a certain version in 2020, but the rust toolchain of that version could not be installed on M1. But now there is no such problem
1 Like

Hi thank you for your response. If I understand you correct, on an Apple with M1 chip, with rosetta 2 emulation dfx is working correctly, without rosetta 2 dfx is not working, right?

Yes, correct.

I still think there may be some issues with running dfx in docker on an M1 mac, kindly investigate this please.

ok, I will give it a try, lets see what happened.

been using it for a couple of months without any issues

ok, thanks about some infos I’m a little worried about this step to buy a new Mac !

Eric and I on the SDK team have been developing full-time on M1 Macbook pros for the past three months

3 Likes

Docker works, all good.

1 Like

Apple has announced that it will discontinue comprehensive support for Rosetta 2 with macOS 27, expected to be released next year.

Currently, the SDK runs on Rosetta 2 on Apple Silicon devices, meaning development teams have just over two years to complete compatibility work. While this is listed as part of future features on the IC Roadmap, a clear timeline must be established to properly address this requirement.

:waving_hand: Hello,

One of the major blockers for running dfx natively on drawin/arm64 is not dfx itself but rather the local replica that was bundled with it.

With the latest version of dfx 0.27.0 the local replica has been removed (see Dfx 0.27.0 is promoted) and dfx now relies on pocket-ic only.

Pocket-ic already supports running natively on arm (see Releases · dfinity/pocketic · GitHub) and we are actively working on making a native release of dfx for darwin/arm64

Stay tuned.

4 Likes

It’s great to hear that! Now I can sleep soundly.