macOS build fails with "An error occurred while generating the build script."

Also having this issue: