{"id":13648987,"url":"https://github.com/getditto/rust-bitcode","last_synced_at":"2026-04-04T01:44:36.136Z","repository":{"id":38075584,"uuid":"209495073","full_name":"getditto/rust-bitcode","owner":"getditto","description":"Rust toolchain for Xcode-compatible iOS bitcode","archived":false,"fork":false,"pushed_at":"2022-09-22T02:37:26.000Z","size":48,"stargazers_count":409,"open_issues_count":0,"forks_count":25,"subscribers_count":53,"default_branch":"master","last_synced_at":"2025-04-19T01:19:40.370Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getditto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-19T07:54:06.000Z","updated_at":"2025-04-16T05:25:57.000Z","dependencies_parsed_at":"2023-01-17T17:16:02.917Z","dependency_job_id":null,"html_url":"https://github.com/getditto/rust-bitcode","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getditto%2Frust-bitcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getditto%2Frust-bitcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getditto%2Frust-bitcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getditto%2Frust-bitcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getditto","download_url":"https://codeload.github.com/getditto/rust-bitcode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250232610,"owners_count":21396668,"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":[],"created_at":"2024-08-02T01:04:41.444Z","updated_at":"2026-04-04T01:44:36.078Z","avatar_url":"https://github.com/getditto.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Deprecation notice (Sep 2022)\n\n[Apple has deprecated the use of bitcode](https://developer.apple.com/documentation/xcode-release-notes/xcode-14-release-notes).\n\n\u003e Starting with Xcode 14, bitcode is no longer required for watchOS and tvOS applications, and the App Store no longer accepts bitcode submissions from Xcode 14.\n\nWe have confirmed that libraries produced by the standard Rust iOS toolchain can be\nincluded in apps using Xcode 14, which pass App Store validation.\n\nThis custom toolchain is **no longer needed** and will not be maintained going forward. 🎉\n\nThe old readme is preserved below for future reference.\n\n# Rust toolchain for Xcode-compatible iOS bitcode\n\nIn standard releases of Rust, the bitcode in ARM64 iOS targets is often\nincompatible with Xcode because they use different versions of LLVM. This is a\n[known issue](https://github.com/rust-lang/rust/issues/35968) with no clear\nlong-term solution yet.\n\nThis repository contains scripts for building and installing a custom Rust\nnightly toolchain where the Rust compiler's version of LLVM matches Xcode.\nSoftware built using this toolchain can be included in bitcode-enabled apps that\nwill install on real iOS devices.\n\nBinary releases of the toolchain will be created periodically and attached to\nthis repository, at least until there is a better upstream solution.\n\nThis repository is maintained by [Ditto](https://www.ditto.live). We use it\nourselves and want to share it for the benefit of the Rust iOS community! Please\ncreate an issue if you notice any problems.\n\nThese scripts work for 64-bit iOS only. watchOS and tvOS are\n[not fully supported by Rust yet](https://github.com/rust-lang/rust/issues/48862).\n\n## Pre-compiled releases\n\nVisit the [releases page](https://github.com/getditto/rust-bitcode/releases) and\ndownload a zip file. It will have a name of the form\n`rust-ios-arm64-xxx.zip`.\n\nUnzip the file and open a terminal to the extracted directory. Remove the\nquarantine flag so the binaries will be trusted, then run the installation\nscript:\n\n```bash\nxattr -r -d com.apple.quarantine .\n./install.sh\n```\n\nThis will install the toolchain in `~/.rustup/toolchains/ios-arm64-xxx`.\n\n## Build from source\n\n1. Ensure required build tools are installed. If you are using homebrew: `brew\n   install ninja cmake openssl`\n2. Clone this repository.\n3. Review `config.sh` to make sure the the Rust and LLVM versions are suitable.\n4. In a terminal, run `./build.sh`. This will clone the Rust and LLVM\n   repositories under `build/` and compile them. The toolchain will end up\n   at `build/rust-build/build/x86_64-apple-darwin/stage2`.\n5. Run `./install.sh`. This will install the toolchain in\n   `~/.rustup/toolchains/ios-arm64-1.60.0`, making it available in rustup.\n\n## Using the toolchain\n\nBuild your library like this:\n\n```bash\ncargo +ios-arm64-1.60.0 build --target aarch64-apple-ios --release --lib\n```\n\n## License\n\nThe shell scripts in this repository are made available under the permissive\nApache 2.0 licence. Refer to the [LICENSE](LICENSE) file.\n\nBinary releases contain LLVM and Rust. See [LICENSE-LLVM](LICENSE-LLVM) and [LICENSE-RUST](LICENSE-RUST) for\ntheir respective licenses. These licenses are included in the binary releases.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetditto%2Frust-bitcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetditto%2Frust-bitcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetditto%2Frust-bitcode/lists"}