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

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

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

    逝者如斯夫

    靜而思之
    數(shù)據(jù)加載中……

    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 閱讀(389) 評(píng)論(0)  編輯  收藏


    只有注冊(cè)用戶(hù)登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 亚洲精品NV久久久久久久久久| 免费看美女裸露无档网站| 免费观看国产小粉嫩喷水| 亚洲av无码专区在线电影天堂| 最近最好的中文字幕2019免费| 亚洲人成网站日本片| 99在线精品视频观看免费| 国产日本亚洲一区二区三区| 免费看美女让人桶尿口| 精品久久久久久亚洲中文字幕 | 亚洲日韩涩涩成人午夜私人影院| 高清免费久久午夜精品| 亚洲一级片免费看| 天堂在线免费观看| 亚洲成电影在线观看青青| 毛片高清视频在线看免费观看| 亚洲国产aⅴ成人精品无吗| 免费在线不卡视频| 国产在线国偷精品免费看| 亚洲福利在线观看| 91在线视频免费看| 日本一区二区三区免费高清在线| 自拍偷自拍亚洲精品情侣| 十九岁在线观看免费完整版电影| 一本天堂ⅴ无码亚洲道久久| 免费大香伊蕉在人线国产| 中文字幕视频在线免费观看| 亚洲成年人免费网站| 国产一区视频在线免费观看| 中国精品一级毛片免费播放| 亚洲另类自拍丝袜第1页| 免费一级一片一毛片| 久久久久免费精品国产小说| 亚洲欧洲无卡二区视頻| 在线观看午夜亚洲一区| 在线看片v免费观看视频777| 国产免费一区二区三区免费视频| 亚洲国产成+人+综合| 久久激情亚洲精品无码?V| 天天影院成人免费观看| 永久免费精品影视网站|