Check GitHub releases for a pre-built macOS binary (look for .app files).
This Master’s Thesis from Aristotle University uses QModMaster to simulate reconnaissance and command injection attacks against Modbus protocols. It details how tools like QModMaster can exploit the lack of authentication in industrial networks. qmodmaster mac
QModMaster download | SourceForge.net