Building macOS applications for Ubuntu OSXCross CMake

In this post, I will describe building cross-platform C++ applications for macOS on an Ubuntu build machine using CMake and osxcross. First, install the osxcross toolchain: https://github.com/tpoechtrager/osxcross Installation occurs in 3 stages, downloading dependencies: cd tools ./get_dependencies.sh Download XCode.xip from the official Apple website, then download the SDK from XCode:…