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.
If a project includes VALID_ARCHS, the setting is displayed in the User-Defined section of the Build Settings editor.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With