I am learning to build things on my new M1 MacBook Pro (MacBookPro17,1) after about 15 years of porting software on Mac PPC and x86_64, almost exclusively scientific code via MacPorts and GNU AutoTools.
So I've used Xcode, but I am very rusty at it.
However... I think I know what's wrong here.
The Apple Silicon Macs require macOS Big Sur or later. I think.
So for cross-compiling a project for Apple's aarch64, you will need to build against the new OS version:
macOS Deployment Target: 11.0 or later
Previous developer tools referred to macOS 10.16, but I do not see that as an SDK in the current version of Xcode.
Topic:
Community
SubTopic:
Apple Developers
Tags: