ZBar with iOS7 and XCode5 compiling error libzbar.a architecture

前端 未结 7 759
花落未央
花落未央 2020-12-28 10:46

just got some errors runnign ZBar with my iOS App.

I included the newest Beta Version 1.3.1 in my Project and am Running the App locally on my iOS7 Device (iPhone 5)

相关标签:
7条回答
  • 2020-12-28 11:02

    You can download the zbar library compiled for arm7, arm7s and arm64 here

    EDIT: I am still getting upvotes on this answer, the real current answer is that now the AV Foundation framework includes barcode scanning as of iOS 7. I would recommend using this over ZBar from here on out. Useful tutorial using AV Foundation to scan with sample code and supported types list or here

    0 讨论(0)
  • 2020-12-28 11:03

    How i resolve the problem is link binary with libraries. Base on the tutorial here

    Now Select project (Blue Icon) go to --> Build Phases --> Link Binary With Libraries. Click the + and add each of these seven frameworks.

    • AVFoundation.framework
    • List item
    • CoreGraphics.framework
    • CoreMedia.framework
    • CoreAudio.framework
    • CoreVideo.framework
    • QuartzCore.framework
    • libiconv.dylib (I use libz.tbd & libicon.tbd)

    **set enable bitcode --> No build! hope this help.

    0 讨论(0)
  • 2020-12-28 11:05

    Try only armv7, armv7s for "Architectures" build settings. I think static library doesn't have arm64 binaries included.

    For more info

    Xcode 5 and iOS 7: Architecture and Valid architectures

    0 讨论(0)
  • 2020-12-28 11:08

    Here (http://zbar.sourceforge.net/iphone/sdkdoc/install.html) is the installing SDK guide, I did this and it worked perfectly.

    Hope it helps.

    0 讨论(0)
  • 2020-12-28 11:09

    Using the beta you linked and changing this setting worked for me:

    enter image description here Settings that worked:

    enter image description here

    I am able to build to the 5s and 5c.

    0 讨论(0)
  • 2020-12-28 11:16

    above answers don't really help

    follow this guide:

    http://www.federicocappelli.net/2012/10/05/zbar-library-for-iphone-5-armv7s/

    But before building change the Architectures to include arm64

    0 讨论(0)
提交回复
热议问题