<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 閱讀(396) 評論(0)  編輯  收藏


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


    網站導航:
     
    主站蜘蛛池模板: 亚洲乱码卡三乱码新区| 亚洲精品色午夜无码专区日韩| 亚洲成a人片在线网站| 一区二区三区四区免费视频 | 又粗又硬又大又爽免费视频播放| 亚洲精品国产情侣av在线| 99久久久国产精品免费牛牛 | 美女扒开屁股让男人桶爽免费| 成年人免费网站在线观看| 亚洲人成色4444在线观看| 日本特黄a级高清免费大片| 亚洲第一综合天堂另类专| 国产三级电影免费观看| 人妻免费久久久久久久了| 国产gv天堂亚洲国产gv刚刚碰| 皇色在线免费视频| 亚洲AV无码一区二区三区系列| 久久久免费精品re6| 国产成人精品亚洲日本在线| 夫妻免费无码V看片| 成年大片免费高清在线看黄| 国产成A人亚洲精V品无码性色| 久久99国产乱子伦精品免费| 亚洲a级片在线观看| 免费国产在线观看| 光棍天堂免费手机观看在线观看| 亚洲天天做日日做天天欢毛片| 国产免费丝袜调教视频| 久久亚洲精品成人无码| 国产成人精品亚洲精品| 99在线在线视频免费视频观看 | 日韩视频免费一区二区三区| 日韩在线一区二区三区免费视频| 亚洲精品乱码久久久久久久久久久久| 在线人成精品免费视频| jiz zz在亚洲| 亚洲国产另类久久久精品| 日本不卡高清中文字幕免费| 三级网站在线免费观看| 亚洲av永久无码精品天堂久久 | 最近中文字幕无免费|