Recently, I had to update an app, which was using the ZBar SDK for scanning bar codes. I haven’t touched this code for about two years, but wanted to add iPhone 6(+) support and meet apples latest requirements (64 bit is required starting June 1). And using the new scanner engine in AVFoundation (iOS 7+) was not an option.
The problem, in this case, was the fact, that the ZBar SDK on the homepage was not updated for a long time, like the SDK or the source code. The provided libzbar.a simply does not contain all the needed architectures to use it in apps targeting the latest iPhone or iPhone simulator, which require 64 bit support.
If you get error messages like “missing required architecture x86_64” or “missing required architecture arm64”, you can use my version.
Therefore, I simply recompiled it and now everything is working as expected, and I want to share the new libzbar.a (it’s a simple drop in replacement, just replace the libzbar.a in your project), which now contains the following architectures: armv7, armv7s, arm64, i386, x86_64
Download ZBar SDK with 64 Bit and iPhone 6 support (3 MB)