Today I will show how to run ⛏️ Monero XMR mining on an Apple Mini 2014 using the XMRig miner.

🔎 Download XMRig for macOS

First, search in Google for XMRig for Mac. scr1 Download the macOS version. scr2 🍏 I selected the version for Intel CPU. scr3 ⚠️ Accept the security warning and download the archive. scr4 scr5 After downloading: 📦 Extract the downloaded file scr6


⚙️ Create XMRig Config File

Go to the official XMRig website and generate a config file with your mining pool and wallet address. If you already have a config file, you can skip this step.

Steps:

Press Wizard scr7 Select New configuration scr8 Add mining pool scr9 I selected Nanopool.org scr10 Enter your 💰 wallet address scr11 In the last tab, download the generated config file scr12 📁 Copy the config file into the XMRig folder. scr13


🚫 macOS Blocks Miner Launch

When trying to launch XMRig, macOS may block the miner from running. Because of this, I decided to compile the miner from source code. scr14


🛠️ Compile XMRig from Source

Search results first link contains instructions on how to build XMRig for macOS. scr15 scr16 Open terminal and run:

brew install cmake libuv openssl hwloc

scr17 But I got an error:

brew: command not found

scr18 That means 🍺 Homebrew is not installed.


🍺 Install Homebrew

Search how to install Homebrew. On the official installation page I found this command: scr19

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

scr20 Copy and run it in terminal.


📦 Install Build Dependencies

After Homebrew installation completes, run again:

brew install cmake libuv openssl hwloc

scr21 Then clone XMRig source code:

git clone https://github.com/xmrig/xmrig.git

scr22

🏗️ Build XMRig

Run:

mkdir xmrig/build && cd xmrig/build

scr23 Next command:

cmake .. -DOPENSSL_ROOT_DIR=$(brew --prefix openssl)

scr24 And finally build the miner:

make -j$(sysctl -n hw.logicalcpu)

scr25

📄 Copy Config File

Copy the previously generated config file into:xmrig/build scr26 scr27


▶️ Start Mining

Run miner from terminal:

./xmrig

scr28

📊 Mining Performance

On my 🍏 Apple Mini 2014 I get around: 820 H/s scr29 🤔 I think this is about the same performance as my 📱 Samsung S9 phone.

⛏️ Happy mining!