For more information about getting it to work on macOS see OSMC Remote Control + macOS + Kodi issue. But this was tested with what is now quite an old version of macOS and the security model has changed a bit, so this program may not be applicable anymore.