<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    逝者如斯夫

    靜而思之
    數據加載中……

    How to install ZXing in Xcode 4

    • April 2011
    • Posted By Yannick Loriot
    • 81 Comments

    After an upgrading to Xcode 4, I have been having trouble compiling my own ZXing iOS project. That’s why I decided to explain you how to install easily ZXing with Xcode 4.

    First of all (for those who don’t know), ZXing is an open-source library to read the 1D/2D barcodes. This library is available on many platforms such as the iOS, Android, Blackberry, ect. You can find it here: http://code.google.com/p/zxing/.

    Before to start, be sure that you have the latest version of ZXing on your computer. If you don’t, you must download it via a SVN client here: http://zxing.googlecode.com/svn/trunk/.

    ?

    To use ZXing into your project in Xcode 4 follow these steps:

    1. Firstly go to the “zxing/iphone/ZXingWidget/” and drag and drop the ZXingWidget.xcodeproj file onto your Xcode “Project navigator” sidebar. If a dialog appears uncheck the “Copy items” and verify that the “Reference Type” is “Relative to Project” before clicking “Add”.

    2. Now we are going to add ZXingWidget as a dependency of your project to allow Xcode to compile it whenever you compile the main project:
      1. First select your project file in the “Project navigator”.
      2. Then select the corresponding target.
      3. After choose the “Build Phases” tab and expand the “Target Dependencies” section.
      4. Click the “+” (add) button to display a dialog.
      5. To finish add the “ZXingWidget” target as shown above.

    3. Now we are going to link the ZXingWidget static library (libZXingWidget.a) to the project:
      1. Firstly choose the “Build Phases” tab and expand the “Link Binary With Libraries” section.
      2. Then click the “+” (add) button to display a dialog.
      3. To finish add the “libZXingWidget.a” which is located in the “Workspace” category as shown above.
      4. By the way add the following iOS frameworks too:
        • AddressBook
        • AddressBookUI
        • AudioToolbox
        • AVFoundation
        • CoreMedia
        • CoreVideo
        • libiconv.dylib

    4. Then you must configure the header search path of your project to allow Xcode to find the ZXingWidget headers. To do that:
      1. In the “Project navigator” select the main project (not the target).
      2. Go to the “Build Settings” tab and search the “Header Search Paths“.
      3. Double-click on it and add:
        • The full path of the “zxing/iphone/ZXingWidget/Classes” directory. Check the “recursive path“.
        • The full path of the “zxing/cpp/core/src/” directory. Uncheck the “recursive path“.

    Now you just have to import the “ZXingWidgetController.h” and the “QRCodeReader.h” to your project and use them.
    Attention: Make sure that the files in which you are using the ZXing headers have the .mm extension because they use c++ library files.

    Voilà! Now all should be ok. I hope it’ll help you!

    1 Star 2 Stars 3 Stars 4 Stars 5 Stars (33 votes, average: 4.55 out of 5)

    http://yannickloriot.com/2011/04/how-to-install-zxing-in-xcode-4/

    posted on 2013-11-03 14:45 ideame 閱讀(397) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: sss日本免费完整版在线观看| 中文字幕中韩乱码亚洲大片| 亚洲国产情侣一区二区三区| 99re免费99re在线视频手机版| 亚洲中文久久精品无码ww16| 国产免费MV大全视频网站| jlzzjlzz亚洲乱熟在线播放| 本道天堂成在人线av无码免费| 亚洲综合色婷婷七月丁香| a毛片在线看片免费| 亚洲天堂久久精品| 18女人毛片水真多免费| 亚洲精品第一国产综合野| 免费中文熟妇在线影片| 亚洲精品av无码喷奶水糖心| 成人无遮挡毛片免费看| 国产亚洲视频在线观看| 区三区激情福利综合中文字幕在线一区亚洲视频1 | 免费看无码自慰一区二区| 亚洲欧洲日韩不卡| 免费女人高潮流视频在线观看| 亚洲AV无码一区东京热| 亚洲精品视频在线免费| 亚洲码和欧洲码一码二码三码| 国产高清免费在线| 男女一边摸一边做爽的免费视频 | 亚洲啪啪AV无码片| 午夜视频免费在线观看| 亚洲人成77777在线观看网| 日本免费无遮挡吸乳视频电影| 成人特级毛片69免费观看| 亚洲精品成人片在线观看精品字幕| 日韩午夜理论免费TV影院| 亚洲午夜理论片在线观看| 亚洲人成色7777在线观看不卡| 免费看成人AA片无码视频吃奶| 久久精品国产精品亚洲毛片| 我想看一级毛片免费的| 国产日韩精品无码区免费专区国产 | 亚洲欧洲精品成人久久曰影片| 久久国产免费一区二区三区|