{"id":15642015,"url":"https://github.com/crazy-max/docker-osxcross","last_synced_at":"2025-04-15T18:32:42.445Z","repository":{"id":40451059,"uuid":"443122571","full_name":"crazy-max/docker-osxcross","owner":"crazy-max","description":"MacOSX cross toolchain as Docker image","archived":false,"fork":false,"pushed_at":"2024-07-11T21:30:21.000Z","size":82,"stargazers_count":73,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-29T15:34:23.605Z","etag":null,"topics":["cross-compiler","docker","macosx-sdk","toolchain"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crazy-max.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"crazy-max","custom":"https://www.paypal.me/crazyws"}},"created_at":"2021-12-30T16:05:30.000Z","updated_at":"2024-10-26T11:20:58.000Z","dependencies_parsed_at":"2023-12-20T09:29:13.847Z","dependency_job_id":"f6033d0d-0dc5-4af4-ba45-b346a5b43eb8","html_url":"https://github.com/crazy-max/docker-osxcross","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fdocker-osxcross","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fdocker-osxcross/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fdocker-osxcross/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fdocker-osxcross/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazy-max","download_url":"https://codeload.github.com/crazy-max/docker-osxcross/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249129102,"owners_count":21217284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cross-compiler","docker","macosx-sdk","toolchain"],"created_at":"2024-10-03T11:53:31.352Z","updated_at":"2025-04-15T18:32:42.427Z","avatar_url":"https://github.com/crazy-max.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/crazy-max","https://www.paypal.me/crazyws"],"categories":[],"sub_categories":[],"readme":"[![Latest version](https://img.shields.io/github/v/tag/crazy-max/docker-osxcross?label=version\u0026style=flat-square)](https://hub.docker.com/r/crazymax/osxcross/tags?page=1\u0026ordering=last_updated)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/crazy-max/docker-osxcross/build.yml?branch=main\u0026label=build\u0026logo=github\u0026style=flat-square)](https://github.com/crazy-max/docker-osxcross/actions?query=workflow%3Abuild)\n[![Docker Stars](https://img.shields.io/docker/stars/crazymax/osxcross.svg?style=flat-square\u0026logo=docker)](https://hub.docker.com/r/crazymax/osxcross/)\n[![Docker Pulls](https://img.shields.io/docker/pulls/crazymax/osxcross.svg?style=flat-square\u0026logo=docker)](https://hub.docker.com/r/crazymax/osxcross/)\n\n[![Become a sponsor](https://img.shields.io/badge/sponsor-crazy--max-181717.svg?logo=github\u0026style=flat-square)](https://github.com/sponsors/crazy-max)\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-00457c.svg?logo=paypal\u0026style=flat-square)](https://www.paypal.me/crazyws)\n\n## About\n\nMacOSX cross toolchain as a Docker image.\n\n\u003e [!TIP] \n\u003e Want to be notified of new releases? Check out 🔔 [Diun (Docker Image Update Notifier)](https://github.com/crazy-max/diun)\n\u003e project!\n\n## Notice of Non-Affiliation and Disclaimer\n\nThis Docker image is not affiliated with Apple Inc. and does not represent\nApple's official product, service or practice. Apple is not responsible for and\ndoes not endorse this Docker image.\n\nThis Docker image is not affiliated with the Xcode project.\n\n**[Please ensure you have read and understood the Xcode license\nterms before using it.](https://www.apple.com/legal/sla/docs/xcode.pdf)**\n\n___\n\n* [Build](#build)\n* [Image](#image)\n  * [Supported tags](#supported-tags)\n* [Usage](#usage)\n* [Contributing](#contributing)\n* [License](#license)\n\n## Projects using osxcross\n\n* [crazy-max/goxx](https://github.com/crazy-max/goxx)\n* [docker/docker-credential-helpers](https://github.com/docker/docker-credential-helpers)\n* [jzelinskie/faq](https://github.com/jzelinskie/faq)\n\n## Build\n\n```shell\ngit clone https://github.com/crazy-max/docker-osxcross.git\ncd docker-osxcross\n\n# Build image and output to docker (default)\ndocker buildx bake\n\n# Build multi-platform image\ndocker buildx bake image-all\n```\n\n## Image\n\n| Registry                                                                                             | Image                           |\n|------------------------------------------------------------------------------------------------------|---------------------------------|\n| [Docker Hub](https://hub.docker.com/r/crazymax/osxcross/)                                            | `crazymax/osxcross`             |\n| [GitHub Container Registry](https://github.com/users/crazy-max/packages/container/package/osxcross)  | `ghcr.io/crazy-max/osxcross`    |\n\n```\n$ docker buildx imagetools inspect crazymax/osxcross --format \"{{json .Manifest}}\" | \\\n  jq -r '.manifests[] | select(.platform.os != null and .platform.os != \"unknown\") | .platform | \"\\(.os)/\\(.architecture)\\(if .variant then \"/\" + .variant else \"\" end)\"'\n\ndarwin/amd64\ndarwin/arm64\nlinux/amd64\nlinux/arm64\n```\n\n### Supported tags\n\n`alpine`, `debian` and `ubuntu` variants are available for this image with\n`ubuntu` being the default one.\n\n* `edge`, `edge-ubuntu`\n* `edge-debian`\n* `edge-alpine`\n* `latest`, `latest-ubuntu`, `xx.x`, `xx.x-rx`, `xx.x-ubuntu`, `xx.x-rx-ubuntu`\n* `latest-debian`, `xx.x-debian`, `xx.x-rx-debian`\n* `latest-alpine`, `xx.x-alpine`, `xx.x-rx-alpine`\n\n\u003e [!NOTE]\n\u003e `xx.x` has to be replaced with one of the MaxOSX releases available (e.g. `11.3`).\n\u003e `rx` has to be replaced with a release number (e.g. `r6`).\n\n## Usage\n\n```dockerfile\n# syntax=docker/dockerfile:1\n\nARG OSXCROSS_VERSION=latest\nFROM --platform=$BUILDPLATFORM crazymax/osxcross:${OSXCROSS_VERSION}-ubuntu AS osxcross\n\nFROM ubuntu\nRUN apt-get update \u0026\u0026 apt-get install -y clang lld libc6-dev\nENV PATH=\"/osxcross/bin:$PATH\"\nENV LD_LIBRARY_PATH=\"/osxcross/lib:$LD_LIBRARY_PATH\"\nRUN --mount=type=bind,from=osxcross,source=/osxcross,target=/osxcross \\\n      o64-clang ...\n```\n\nWith alpine:\n\n```dockerfile\n# syntax=docker/dockerfile:1\n\nARG OSXCROSS_VERSION=latest\nFROM --platform=$BUILDPLATFORM crazymax/osxcross:${OSXCROSS_VERSION}-alpine AS osxcross\n\nFROM alpine\nRUN apk add --no-cache clang lld musl-dev\nENV PATH=\"/osxcross/bin:$PATH\"\nENV LD_LIBRARY_PATH=\"/osxcross/lib:$LD_LIBRARY_PATH\"\nRUN --mount=type=bind,from=osxcross,source=/osxcross,target=/osxcross \\\n      o64-clang ...\n```\n\n`darwin/amd64` and `darwin/arm64` platforms are also available with the\nMacOSX SDK in `/osxsdk` if you want to use it as sysroot with your own toolchain\nlike [`tonistiigi/xx`](https://github.com/tonistiigi/xx):\n\n```dockerfile\n# syntax=docker/dockerfile:1\n\nARG OSXCROSS_VERSION=latest\nFROM crazymax/osxcross:${OSXCROSS_VERSION}-alpine AS osxcross\nFROM --platform=$BUILDPLATFORM tonistiigi/xx:1.1.2 AS xx\n\nFROM --platform=$BUILDPLATFORM alpine\nCOPY --from=xx / /\nRUN apk add --no-cache clang lld musl-dev\nARG TARGETPLATFORM\nRUN xx-apk add gcc g++ musl-dev\nRUN --mount=type=bind,target=. \\\n    --mount=type=bind,from=osxcross,source=/osxsdk,target=/xx-sdk \\\n      xx-clang ...\n```\n\n## Contributing\n\nWant to contribute? Awesome! The most basic way to show your support is to star the project, or to raise issues. You\ncan also support this project by [**becoming a sponsor on GitHub**](https://github.com/sponsors/crazy-max) or by making\na [Paypal donation](https://www.paypal.me/crazyws) to ensure this journey continues indefinitely!\n\nThanks again for your support, it is much appreciated! :pray:\n\n## License\n\nMIT. See `LICENSE` for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazy-max%2Fdocker-osxcross","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazy-max%2Fdocker-osxcross","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazy-max%2Fdocker-osxcross/lists"}