嗨,我正在使用Xcode 12.0 beta 3(12A8169g)。构建设置中缺少有效的体系结构。是否有人知道如何在XCode 12.0版本中添加有效的体系结构。 XCode正在处理它还是Beta版本的错误。
答案 0 :(得分:10)
从Xcode 12 Beta release notes:
“构建设置”编辑器不再包含“有效体系结构”构建设置(VALID_ARCHS),不建议使用。而是有一个新的“排除的体系结构”构建设置(EXCLUDED_ARCHS)。如果项目包含VALID_ARCHS,则该设置将显示在“构建设置”编辑器的“用户定义”部分。
答案 1 :(得分:1)
我改为将此设置的值更改为true
,它对我有用:
Build Active Architecture Only
答案 2 :(得分:0)
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)