Xcode 9:%appName%没有%deviceName%可以执行的体系结构

时间:2017-09-25 14:42:04

标签: ios xcode cocoapods xcode9

我在下面列出的Xcode 9中遇到了这样的错误:

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

example of such wtf

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'

example of such wtf

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

  1. Valid Arhitectures设置为arm64 armv7 armv7s
  2. Build Active Architecture Only仅在Debug模式下启用。
  3. 很长一段时间我都无法理解原因。我走错了路,踩着耙子。我在SO学到了关于Xcode / Cocoapods的所有问题,但没有得到答案。

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

1 个答案:

答案 0 :(得分:0)

architecture视为target,将target更改为相应的$("#tribute_type").value = "tribute_type_value1",就像在设备上一样。