You can use official binary downloads for this OS, with macos-x64 or macos-arm64 suffix.


You need to install Homebrew if it is not installed already.

Apple processor

Apple M1 processor officially supported since 6.7.0 release. Native ARM Homebrew is required to build from source.

ARM macOS has the following disadvantages which reduce the hashrate:

  • Enforced Hardened Runtime, it means RandomX JIT compiler can work only in slow secure mode.
  • Any kind of CPU affinity not supported.
  • Huge pages not supported.

Basic build

Basic build is good for local machine, because it is easy, but if you need to run the miner on other machines please take a look at advanced build.

1. brew install cmake libuv openssl hwloc
2. git clone
3. mkdir xmrig/build && cd xmrig/build
4. cmake .. -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl
5. make -j$(sysctl -n hw.logicalcpu)

Alternative step 4 for Apple processor.

cmake .. -DUV_INCLUDE_DIR=/opt/homebrew/include -DUV_LIBRARY=/opt/homebrew/lib/libuv.a -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl -DHWLOC_INCLUDE_DIR=/opt/homebrew/include -DHWLOC_LIBRARY=/opt/homebrew/lib/libhwloc.dylib

Advanced build

We use script to build recent version of hwloc as static library.

1. brew install cmake wget automake libtool autoconf
2. git clone
3. mkdir xmrig/build && cd xmrig/scripts
4. ./ && cd ../build
5. cmake .. -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DHWLOC_INCLUDE_DIR=../scripts/deps/include -DHWLOC_LIBRARY=../scripts/deps/lib/libhwloc.a
6. make -j$(sysctl -n hw.logicalcpu)

Alternative step 5 for Apple processor.

cmake .. -DUV_INCLUDE_DIR=/opt/homebrew/include -DUV_LIBRARY=/opt/homebrew/lib/libuv.a -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl -DHWLOC_INCLUDE_DIR=../scripts/deps/include -DHWLOC_LIBRARY=../scripts/deps/lib/libhwloc.a

Use command otool -L xmrig to verify binary dependencies.