Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 12 beta valid architectures missing in build settings

Tags:

xcode

ios

Hi I'm using Xcode Version 12.0 beta 3 (12A8169g). Valid architectures in build settings is missing. Does anybody know how to add valid architectures in XCode 12.0 version. XCode is taking care of it or is it a beta version bug. enter image description here

like image 245
Tabz Avatar asked Aug 05 '20 05:08

Tabz


People also ask

Where is valid architectures in Xcode?

If a project includes VALID_ARCHS, the setting is displayed in the User-Defined section of the Build Settings editor.

How do I add excluded architecture in Xcode?

Go to Targets section, select each target and do the following: Set Build Active Architecture Only to YES. Add Excluded Architectures and set its value to arm64 (See attached) Set Active scheme (on toolbar next to project name) to any iOS Simulator.

What is valid architectures in Xcode?

VALID_ARCHS (Valid Architectures) Space-separated list of identifiers. Specifies the architectures for which the binary may be built. During the build, this list is intersected with the value of ARCHS build setting; the resulting list specifies the architectures the binary can run on.

How do I change my build settings in Xcode?

Choose the project in the Project Navigator on the left. Select the Configurations target from the Targets section and click the Build Settings tab at the top. The Build Settings tab shows the build settings for the Configurations target. It's possible to expand this list with build settings that you define.


1 Answers

From Xcode 12 release notes:

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.

like image 177
juhan_h Avatar answered Oct 17 '22 00:10

juhan_h