Xcode 26.6(target=macOS): Run Script receives inconsistent architecture-related build settings during GUI builds

Setup the target as follows:

Architectures = Standard Architectures (Apple Silicon, Intel)

Build Active Architecture Only = No

When you display $ARCHS using the Run Script added at the end of Build Phases, you will see the following differences:

from GUI(Xcode.app) ARCHS=arm64

from CUI(xcodebuild) ARCHS=arm64 x86_64

Even when built from the GUI, it should be the same as when built from the CUI.

Xcode 26.6(target=macOS): Run Script receives inconsistent architecture-related build settings during GUI builds
 
 
Q