缺少必需的体系结构x86

缺少必需的体系结构x86

本文介绍了Zbar SDK - 缺少必需的体系结构x86_64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在最近的Xcode 5.1中构建应用程序时遇到了一个问题。编译失败,出现未定义的架构x86_64符号错误。

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

我使用Valid Architecture构建我的项目:armv7,armv7s和arm64。切换到最新环境(Xcode)后,我在同一架构中重建了libzbar.a库(我根据以下解决方案完成了它:)

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:)

推荐答案

我遇到了同样的问题,我解决了这个问题:

I had the same problem and I solved that way:


  • 从项目中删除文件夹ZBarSDK的引用。

  • 从此下载armv7,arm7s和armv64的版本。

  • 替换旧文件夹,(保存副本以防万一)

  • 将新文件夹添加到项目中。

  • 清理项目并构建。

  • 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.

这篇关于Zbar SDK - 缺少必需的体系结构x86_64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 09:52