【问题标题】:"Missing required architecture arm64 in file..."Xcode 6 beta when running in ios 7 device“文件中缺少所需的架构 arm64 ...”在 ios 7 设备中运行时的 Xcode 6 beta
【发布时间】:2014-10-22 05:01:33
【问题描述】:

我目前正在快速制作一个项目并且一切顺利..

但是当我在我的设备(iPhone 5s -iOS 7.1)上运行我的应用程序时,XCode 会返回以下错误

ld: in '/usr/lib/system/libsystem_configuration.dylib', missing required architecture arm64
in file /usr/lib/system/libsystem_configuration.dylib (2 slices) for architecture arm64 
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我已尝试删除派生数据,但没有成功,而且我找不到该问题的任何其他答案。

编辑:在装有 iOS 7(32 位和 64 位 sims)的模拟器上运行完美无缺。

【问题讨论】:

  • 你添加了arm64 Achitectures 和 ValiAchitectures 吗?
  • 我什至没有碰过这些。它说 Architectures 包含 armv7 和 arm64 而 ValidArch 包含 arm64 armv7 和 armv7s
  • 您是否尝试过在构建设置中为调试和发布设置设置所有架构?
  • 它们都一样。
  • 您使用的是静态库吗?或任何外部库?

标签: ios iphone xcode swift


【解决方案1】:

你在架构下有这种架构类型吗。抱歉,我不得不添加图片,所以创建了一个帖子。

你也试过将 Build Active architectureore only 设置为 NO 。

您的项目需要 arm64 架构吗?...如果您不需要它,请查看此 SO 链接以编辑架构。Click this link

【讨论】:

  • 在架构上我只有 armv7 和 arm64。将 Build Active Achitecture 更改为 NO 并在清理 Derived Data 后将错误更改为:ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) 然后我将 Pods 项目 Build Active Achitecture 也更改为 NO 并且错误再次成为最初的错误。
  • 如果没有,您可以使用上面的链接删除架构,也可以通过此链接从 cocoapods 中删除。 cameronspickert.com/2014/01/20/…
  • 我从 cocoapods 和我的主项目中删除了,出现的错误是:ld: in '/usr/lib/system/libsystem_configuration.dylib', missing required architecture armv7 in file /usr/lib/system/libsystem_configuration.dylib (2 slices) for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) 据我所知,我不需要 arm64
  • 你是否将架构设置为 arm7 armv7
  • 架构是默认架构。我做了你给我的例子,但没有奏效。目前我的架构正在显示:标准架构 (armv7, arm64) - &(ARCHS_STANDARD)
猜你喜欢
  • 2015-12-16
  • 1970-01-01
  • 2014-04-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-12-20
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多