/Barcode-Reader

(DEPRECATED) An example of use of Ice for iOS platform.

Primary LanguageObjective-COtherNOASSERTION

Barcode Reader

Introduction

This application is based on Zbar library to read barcodes but the main purpose of this project is to test the Ice library on iOS devices.

Tips

There is not much to say about how to install/configure Zbar library, just follows the instructions on its page and it’ll work.

Now, Ice requires to know some things, I’m not saying anything that is not in its documentation page or forum but, if you are like me that prefers to start with the code instead of read the documentation, this will help you:

  • IceTouch is not compatible with XCode 4. For this reason, I had to install XCode 3.2.6 in other folder different from /Developer.
  • Because I had to install XCode 3.2.6 in other folder different from /Developer, the binary distribution didn’t work for me. I had to compile the source code but this is really simple, inside the source distribution there’s a file named INSTALL which explains how to do that. Just remember that the SDK for XCode 3.2.6 is 4.3, assign this version to IPHONE_SDK_VERSION variable in Make.rules.
  • After compile and install the library, you have to change the configuration of your XCode project. Look for a file named RELEASE_NOTES inside of source or binary distribution, it explains this after the title “8. Xcode project settings”.
  • The library is compiled for armv6 architecture, this means that whenever you try to compile for other architecture (armv7) it fails, it necessaries to avoid XCode to compile for another. So, set as “Active Architecture” armv6, check “Build Active Architecture Only” in the build settings for the target and delete armv7 from “Valid Architectures”.
  • Because you have installed the plugin for IceTouch in XCode, you don’t have to care about generate .h and .m with the Slice, just import the .ice file in your project.

License

It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file