Juce based project builds on Windows but not on Mac

Can you share the build command that causes the error? There are instructions to see the build log in this post (or in this stack overflow answer). Hopefully that will show us the troublesome definition, and then we can try to work out where it’s coming from.