Skip to content
Discussion options

You must be logged in to vote

This works fine for me:

FROM rust:latest

RUN apt-get update \
    && apt-get install -y --no-install-recommends build-essential ca-certificates clang cmake curl git llvm lld make pkg-config python3 xz-utils \
    && rm -rf /var/lib/apt/lists/*

RUN git clone --depth 1 https://github.com/tpoechtrager/osxcross.git /osxcross \
    && curl -L -o /osxcross/tarballs/MacOSX11.3.sdk.tar.xz https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX11.3.sdk.tar.xz \
    && UNATTENDED=1 OSX_VERSION_MIN=11.0 /osxcross/build.sh \
    && rm -rf /osxcross/tarballs/*

ENV PATH=/osxcross/target/bin:$PATH
ENV SDKROOT=/osxcross/target/SDK/MacOSX11.3.sdk
ENV MACOSX_DEPLOYMENT_TARGET=11.0
ENV CC_a…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@Skeeve
Comment options

@sxyazi
Comment options

@Skeeve
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Skeeve
Comment options

@Skeeve
Comment options

Answer selected by Skeeve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
1. Q&A
Labels
None yet
2 participants