There are some threads about that too
e.g.
https://github.com/spark/firmware/blob/develop/docs/dependencies.md
[Debugging] Netbeans IDE on Mac OSX [17 June 2015]
Help setting up Eclipse development environment on Mac - SOLVED
(Almost) no-brainer linux virtual machine for firmware building
https://docs.google.com/document/d/1izv83fnSMMKyw-7tIbnH4RleJCthTPgSBkJR6swwFzo/edit?usp=sharing