I am porting a macOS Objective-C app from just Intel silicon to universal binary -- Intel and Apple silicon both -- using Xcode 13.2.1, building on a 2019 Mac Pro running macOS 11.6.4. I have followed all the instructions here: https://developer.apple.com/documentation/apple-silicon/building-a-universal-macos-binary. In particular, in Xcode's "build" settings, "Architectures" is set to "Standard Architectures (Apple Silicon, Intel) - $(ARCHS_STANDARD)", and "Build Active Architecture Only" is set to "No".
Yet when I use Xcode to build either the release or the debug version of my app, the shell command:
lipo -archs <path to MyApp.app>/Contents/MacOS/<MyApp>
returns only "x86_64", and indeed, the app doesn't even start initialization when I test it on a Mac Mini with Apple silicon.
What could I be doing wrong?