Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I am posting this in order to make things simple for newbies like me that are integrating zxing qr reader in their projects and to bring closure to a couple of threads related to zxing integration. </p> <p>1. Main thing - Be absolutely sure you have the latest version. </p> <blockquote> <p><a href="http://zxing.googlecode.com/svn/trunk/" rel="nofollow">http://zxing.googlecode.com/svn/trunk/</a></p> </blockquote> <p>[By now, January 18th, you will have no more issues with that zxing/common/ folder. Easiest fix for this: get the latest code!]</p> <p>2. Go to zxing -> iphone -> ZXingWidget. </p> <blockquote> <p>Drag ZXingWidget.xcodeproj file and drop it onto the root of your Xcode project's "Groups and Files" sidebar. </p> </blockquote> <p>[you should now have ZXingWidget.xcodeproj listed there and it has to drop down and list it's content]</p> <p>3. In the same place, project navigator, select: </p> <blockquote> <p>Your project file - > Targets -> 'your project name' -> Build phases -> Link binary with libraries.</p> <p>You should find a folder named 'Workspace'. Add 'libZXingWidget.a' from within.</p> </blockquote> <p>4. Still in Build phases, expand Target Dependencies and add ZXingWidget.</p> <p>5. Select Build Settings and search for Header Search Paths. You need to add 2 records to Header Search Paths. You do not need to associate values to User Header Search Paths. You achieve this by double clicking the column on the right. A small popover window will apear. Use the + button to add the first record. Add: </p> <blockquote> <p>../zxing/iphone/ZXingWidget/Classes</p> </blockquote> <p>Now use the + button to add the second record. Add: </p> <blockquote> <p>../zxing/cpp/core/src</p> </blockquote> <p>These are the values I use. These values work because I use the same folder to host both my project and the zxing folder. </p> <p>[Be sure to refer your folder properly in case you decide to have a different file structure.]</p> <p>6. Go back to Build Phases and add the following ios frameworks required: </p> <blockquote> <p>AVFoundation</p> <p>AudioToolbox</p> <p>CoreVideo</p> <p>CoreMedia</p> <p>libiconv</p> <p>AddressBook</p> <p>AddressBookUI</p> </blockquote> <p>7.</p> <blockquote> <p>Create a set of files (.h&amp;.m) and change it's .m extension to .mm</p> </blockquote> <p>8. Test the integration by including the following in the file previously created: </p> <pre><code>#import &lt;ZXingWidgetController.h&gt; #import &lt;QRCodeReader.h&gt; </code></pre> <p>At this point you should run into missing files only if you are not running the latest version. Hope this helps.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload