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


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


    網站導航:
     
    主站蜘蛛池模板: 1000部羞羞禁止免费观看视频| 亚洲性日韩精品一区二区三区| 国产免费拔擦拔擦8X高清在线人 | 99久久免费国产特黄| 国产99久久亚洲综合精品| 免费人成动漫在线播放r18| selaoban在线视频免费精品| 丰满亚洲大尺度无码无码专线| a一级毛片免费高清在线| 四虎影视在线永久免费看黄 | 免费永久看黄在线观看app| 中文文字幕文字幕亚洲色| 亚洲av无码专区在线电影天堂| 人成电影网在线观看免费| 色老头永久免费网站| 成人永久福利免费观看| 在线亚洲人成电影网站色www| 337p日本欧洲亚洲大胆艺术| 亚洲永久永久永久永久永久精品| 亚洲乱码在线卡一卡二卡新区| 午夜成人无码福利免费视频| 在线免费观看污网站| 亚洲日韩精品A∨片无码| 亚洲综合小说另类图片动图| 无人视频免费观看免费视频| 永久免费观看的毛片的网站| 国产精品亚洲αv天堂无码| 成在人线av无码免费高潮水| 中文字幕在线观看免费视频 | 亚洲区小说区激情区图片区 | 91免费国产精品| 亚洲成年网站在线观看| 国产成人3p视频免费观看 | 无码不卡亚洲成?人片| 亚洲国产高清美女在线观看| 麻豆亚洲AV成人无码久久精品 | 97碰公开在线观看免费视频| 国产成人免费福利网站| 国产免费A∨在线播放| 免费的一级片网站| 中文字幕不卡免费视频|