【发布时间】:2020-08-05 05:40:36
【问题描述】:
您好,我使用的是 Xcode 版本 12.0 beta 3 (12A8169g)。构建设置中的有效架构缺失。有人知道如何在 XCode 12.0 版本中添加有效架构。 XCode 正在处理它,或者它是一个测试版错误。
【问题讨论】:
您好,我使用的是 Xcode 版本 12.0 beta 3 (12A8169g)。构建设置中的有效架构缺失。有人知道如何在 XCode 12.0 版本中添加有效架构。 XCode 正在处理它,或者它是一个测试版错误。
【问题讨论】:
来自 Xcode 12 release notes:
构建设置编辑器不再包含有效架构构建设置 (VALID_ARCHS),并且不鼓励使用它。相反,有一个新的排除架构构建设置 (EXCLUDED_ARCHS)。如果项目包含 VALID_ARCHS,则该设置将显示在 Build Settings 编辑器的 User-Defined 部分中。
【讨论】:
我将此设置的值改为true,它对我有用:
Build Active Architecture Only
【讨论】:
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)
【讨论】: