【问题标题】:xcode 5.0.2 could not build module "Darwin"xcode 5.0.2 无法构建模块“Darwin”
【发布时间】:2014-02-05 07:52:37
【问题描述】:

我买了一个新的 mac mini 2012,并将操作系统更新到 10.9.1。我从应用商店下载了 5.0.2 版的 xcode

当我第一次创建一个默认的 iphone 项目并构建它时。它返回失败“无法构建模块“Darwin”http://sdrv.ms/1g0IMsS

link 报告的此错误的解决方案为我工作。 我重新安装xcode。错误仍然存​​在。

这是我的架构设置:http://sdrv.ms/1g0ISAH

有人可以帮我吗?

【问题讨论】:

  • 这里真正的问题在于会话中的构建设置:Apple LLVM 5.0 - 语言 - 模块,我们应该将启用模块(C 和目标 c)设置为 NO (sdrv.ms/1ckhH4m)

标签: xcode


【解决方案1】:

Build Settings -> Architectures -> Valid Architectures 包括 armv7armv7s 但请确保不要包括 arm64,除非您部署到 7.0+。

【讨论】:

    【解决方案2】:

    我没有在 Architectures 部分或 Build Settings 的 Apple LLVM 5.0 - Language - Modules 部分中进行任何更改。我只是使用默认设置。相反,我只是将 Active Scheme 从 iOS Device 更改为给定的 iOS Simulator 之一。

    然后我从Product菜单中选择Build,所有Could not build module ‘xxx’错误都消失了

    【讨论】:

      猜你喜欢
      • 2019-03-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多