I found out the error is because the MacOS file is not an executable, I tried following a tutorial to make it an executable but it says 'No such file or directory found"
See if the tutorial works for you: