Life So Short, the Craft So Long to Learn

OCaml on iOS 7 Released

August 21, 2014

Pansophical reader, with your bafflingly good mobile OCaml project, I’m ready at last to release an OCaml compiler for iOS 7. It works for all my projects, and I hope it works for yours.

It’s a cross-compiling version of OCaml 4.01.0, and I’m running it under Xcode 5.1.1 on OS X 10.9.4. You can download a binary installer here:

Icosablue blue icosahedron screen

OCamlXARM 4.0.2 Installer for OS X 10.9

You can get sources from the Subversion repository here:


If you just want to see the differences from the base OCaml 4.01.0 release, the diffs are available here:

OCamlXARM 4.0.2 diffs from OCaml 4.01.0

A simple test of the installed compiler is given on Compile OCaml for iOS. There are also instructions for building from source.

Seriously, thanks to the many rather awesome people who have written asking about the status of the compiler. If your experience of mobile OCaml is like mine, we should all be able to make some surprising things.

There are always new revisions of everything coming out, so this is just one point of a long journey. I’ve already had inquiries about the companion compiler OCamlXSim, which compiles for the iPhone Simulator. I’ve also promised to integrate OCamlXARM into OPAM, the OCaml package manager. I’ll be getting to these projects as soon as I can.

If you find problems with the compiler, I’d be happy to hear about them. Or if you have any comments or encouragement, leave them below or email me at

Posted by: Jeffrey


blog comments powered by Disqus