3
  1. Downloaded ZBar
  2. Imported the contents in to the group.
  3. Added library file libzbar.a in build phases.

But when I'm tried to build (both 32 bit & 64 bit), it got the follower linker error. I have attached the screenshot of the setup in the bottom of the post.

enter image description here

How can I make ZBar to be flexible with both (32bit and 64 bit) Architecture.

Icoder
  • 330
  • 3
  • 25

3 Answers3

3

Change "armv7, armv7s" to "armv7" only in Build Settings,

enter image description here

karthika
  • 4,085
  • 3
  • 21
  • 23
  • Thanks for your response. I already had the same architecture in my build setting. Some inconsistency with simulators. When I was testing with device it worked very fine. – Icoder Oct 31 '13 at 10:59
  • Sadly this won't probably work for much longer as Apple will be forcing all apps to require arm64 and armv7 from February 1st 2015 (I think) - armv7s will effectively become redundant. – rharvey Nov 06 '14 at 13:27
1


I think I found an answer to your problem just yesterday:
When I was compiling/running in simulator (64bit) or trying to create an archive with the zbar sdk (I'm using the beta 1.3.1 one), the program crashes with the same errors because of this 64bit-structure. Rest worked fine.
So I selected my project in the navigator and clicked on the project (not the target) and then Build Settings. I switched the options to ALL and COMBINED. Then I selected the drop-down-menu in Architectures / Architectures. You should see the Debug and Release options. Edit both of them and replace the $(ARCHS_STANDARD) with $(ARCHS_STANDARD_32_BIT). Now you should be able to run your project on all simulators.

One important point: I haven't tried this solution on a real 64bit device (iPhone 5s) jet. So I don't know if there might be problems with this fixing. If someone got issues, please tell us here.

Phil-iOS
  • 11
  • 1
0

ZBar SDK doesn't compile when you select the iOS Simulator . It runs on Device only .

Tendulkar
  • 5,550
  • 2
  • 27
  • 53
  • 2
    It woks fine in developer mode, but when I'm trying to generate a build it showing the same error? – Icoder Nov 04 '13 at 05:58
  • @ Matrosov Alexander not exactly I just removed arm7s. I don't think that as an exact solution. I faced the same issue while using google's api in some other app. – Icoder Nov 12 '13 at 06:48