Install and use tesseract on iOS with tesseract-ios

Update 10/10/12

I updated tesseract-ios-lib with a (fake) armv7s slice. There is no need to remove armv7s from build architectures anymore. More informations about this change on my previous post.


In my last article about how to compile tesseract for iOS SDK 6, I quickly posted two links to my github repos:

Some comments complained about the lack of guide to install and use this wrapper. I’m going to show you how to build a new iOS project with tesseract, from scratch.


Compile tesseract for iOS SDK 6.0

Update 10/25/12

Added instructions to integrate an armv7s slice in liblept.a and libtesseract_all.a.

Update 09/24/12

To make the iOS integration easier, I made a Github repo containing an Objective-C wrapper for Tesseract. It relies on an other repo containing tesseract & leptonica libs. Feel free to improve them !

More informations about these repos on my next article.


I had troubles while following the compiling guide from this blog: Some dependencies are missing on a fresh Mountain Lion with Xcode 4.5, and more importantly: the won’t work.

Here is why: Xcode 4.5 and iOS SDK 6.0 don’t support armv6 anymore.

So here are the steps to build tesseract-ocr for iOS SDK 6.0.