To use Proxmark3 X on macOS and Linux, you have to use the raw command. Here's the step of compiling the evironment of Proxmark3.
Install Proxmark3 Client
Install HomeBrew
HomeBrew is a package management tool on macOS, similar to Debian's apt and CentOS's yum. If you don't have it installed, you can install it with the following command: