【问题标题】:Xcode 9: %appName% does not have an architecture that %deviceName% can executeXcode 9:%appName% 没有 %deviceName% 可以执行的架构
【发布时间】:2017-09-25 14:42:03
【问题描述】:

我在 Xcode 9 中遇到过下面列出的此类错误:

%appName% does not have an architecture that %deviceName% can execute.

Target 'Pods-%appName%' of project 'Pods' was rejected as an implicit dependency for 'Pods_%appName%.framework' because its architectures 'armv7' didn't contain all required architectures 'arm64'

尽管如此,我有正确的项目设置:

  1. Valid Arhitectures 设置为 arm64 armv7 armv7s
  2. Build Active Architecture Only 仅在 Debug 模式下启用。

很长一段时间我都无法理解原因。我走错了路,踩到了耙子。我在 SO 学习了所有关于 Xcode/Cocoapods 的问题,但没有得到答案。

如果遇到此类错误,解决方法如下所示。

【问题讨论】:

    标签: ios xcode cocoapods xcode9


    【解决方案1】:

    architecture 读取为target,将target 更改为适当的,就像在设备上一样。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-03-11
      • 1970-01-01
      • 1970-01-01
      • 2018-07-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多