xcode not building arm64/apple silicon universal dylib
07:54 06 Feb 2021

I am on xcode 12.4 macOS catalina, Intel x64 machine. There is a project which is C/C++ project and outputs a dylib. In the xcode 12.4 the build setting "Architectures" is Apple Silicon & Intel.

Build active architecture Only is No.

enter image description here

The dylib builds fine but when I check if it is a Universal library or not using lipo then it shows on x64 and not arm.

enter image description here

xcode macos apple-silicon