Skip to content

Doc building for ios

kud1ing edited this page Jan 15, 2014 · 98 revisions

There are two possible routes for writing code in Rust for iOS:

  • either let Rust generate LLVM bitcode and use that using the Xcode toolchain
  • or try to add cross-compilation support to Rust.

a) LLVM Bitcode

See https://github.com/shilgapira/ObjCrust

b) Cross-compiler

Some issues need to be resolved yet, see the open issues.

You need XCode 5.

  1. Build Rust:
mkdir build_ios; cd build_ios
../configure --target=arm-apple-darwin
make VERBOSE=1
  1. Use Rust:
rustc --target=arm-apple-darwin foo.rs

Adjustments

Current adjustments

For the current adjustments:

Possible future adjustments

Resources

All Categories:

Clone this wiki locally