Trying the build the Internet Identity canister locally on MacOS. Is it possible?

when trying to run the build, I get the following error:

error: failed to add native library /var/folders/30/7j228pcj5gx99lq_qsxxd3xw0000gn/T/cargo-installDsxVth/release/build/wabt-sys-5c97f456420b4626/out/build/libwabt.a: file too small to be an archive

error: aborting due to previous error

error: could not compile `wabt-sys`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `ic-cdk-optimizer v0.3.1`, intermediate artifacts can be found at `/var/folders/30/7j228pcj5gx99lq_qsxxd3xw0000gn/T/cargo-installDsxVth`

Caused by:
  build failed
The build step failed for canister 'rwlgt-iiaaa-aaaaa-aaaaa-cai' with an embedded error: The custom tool failed.

does anyone know how to resolve this error?

1 Like

Are you on a M1 mac? I’ve heard other people having problems with the new Apple silicon. If that’s the case, you could give Multipass 1.8 a try. It’s an emulator that can run Ubuntu, and it’s been confirmed to be compatible with M1 macs.