Zbar SDK - missing required architecture x86_64

mbutan picture mbutan · Mar 26, 2014 · Viewed 15.4k times · Source

I had one problem during building application in the recent Xcode 5.1. Compilation fails with "Undefined symbols for architecture x86_64" error.

I build my project with Valid Architecture: armv7, armv7s and arm64. After switch to the newest environment (Xcode) I rebuild libzbar.a library in the same architecture ( I have done it based on solution found at: Linker Error in Xcode-5)

Maybe somebody also had same problem and finally he had solved it, please share with solution:)

Answer

fpauer picture fpauer · Jan 7, 2015

I had the same problem and I solved that way:

  • Remove the reference of folder ZBarSDK from your project.
  • Download the version for armv7, arm7s and armv64 from this link .
  • Replace the older folder for the new, (Save a copy in case )
  • Add the new folder into your project.
  • Clean the project and Build.

Let me know if it works for you.