【问题标题】:Xcode 12 beta valid architectures missing in build settings构建设置中缺少 Xcode 12 beta 有效架构
【发布时间】:2020-08-05 05:40:36
【问题描述】:

您好,我使用的是 Xcode 版本 12.0 beta 3 (12A8169g)。构建设置中的有效架构缺失。有人知道如何在 XCode 12.0 版本中添加有效架构。 XCode 正在处理它,或者它是一个测试版错误。

【问题讨论】:

    标签: ios xcode


    【解决方案1】:

    来自 Xcode 12 release notes:

    构建设置编辑器不再包含有效架构构建设置 (VALID_ARCHS),并且不鼓励使用它。相反,有一个新的排除架构构建设置 (EXCLUDED_ARCHS)。如果项目包含 VALID_ARCHS,则该设置将显示在 Build Settings 编辑器的 User-Defined 部分中。

    【讨论】:

    • 链接失效了,有人知道替换资源吗?
    【解决方案2】:

    我将此设置的值改为true,它对我有用:

    Build Active Architecture Only
    

    【讨论】:

      【解决方案3】:

      https://developer.apple.com/documentation/xcode-release-notes/xcode-12-release-notes.

      Deprecations
      The Build Settings editor no longer includes the Valid Architectures build setting (VALID_ARCHS), and its use is discouraged. Instead, there is a new Excluded Architectures build setting (EXCLUDED_ARCHS). If a project includes VALID_ARCHS, the setting is displayed in the User-Defined section of the Build Settings editor. (15145028)
      The legacy build system is deprecated, and will be removed in a future release. (62742902)
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-04-23
        • 2021-12-13
        • 2022-06-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多