Installing ROS Melodic (Bare Bones) on MacOS Mojave

Getting ROS to compile on MacOS (OS X) is an experience guaranteed to test your patience creativity in fixing build and runtime errors. After all, ROS does not officially support MacOS and its install guide is broken and outdated. With a few days of tinkering, I managed to build ROS Melodic and want to share the information. Here is my setup: MacOS Mojave (v10.14.6) running on Macbook Pro native Python 2.7.10 interpreter bundled with Mojave (Homebrew Python 2.7.13 + pyenv…