When cross compiling for macOS, it's necessary to install the SDK (Software Development Kit) from Apple as well as a suitable compiler. The instructions for Windows (using MSYS2—described in the previous Appendix, Installation Details) and Linux are almost identical; the main work is to install the macOS SDK.