I get the same error when accessing the Mendix project from the Mac File Manager.
The solution I use is to map my network drive to a letter, so in your case, I’d assign M: to \\Mac\Home\Documents\Mendix . When you open the project, do so from Windows Explorer on the M drive, not from the Mac File Manager. When you compile, it should be fine now.
Hope this helps.
Some supportive images to complement Robert Price’s answer :)
Hello, Need your help. I am getting the same error even after adding the folder. Could you please help with step by step instructions.