Mac OSx SDKs used for cross compiling. The SDKs were generated from Command Line Tools, which can be obtained from https://developer.apple.com/download/more/.
- Make sure you have the Command Line Tools installed. Usually running commands like
gcc
ormake
will attempt to install the Command line tools. - Run
./scripts/gen_sdk_package.sh
- Create the docker image:
docker build -t i96751414/mac-sdk-packager:latest .
- Run the container with the volume containing the
.dmg
file:docker run --rm -u "$(id -u):$(id -g)" -v "<volume-path>:/sdk" i96751414/mac-sdk-packager:latest