When the Projucer “Xcode (macOS)” exporter option “macOS Architecture” is set to “Native architecture of build machine” (osxArchitecture="Native"
in .jucer
file),
Xcode 12.2 on an M1 Mac builds an arm64e
executable rather than arm64
, and macOS then refuses to run such executable.
The proper architecture to use should be arm64
architecture as seen on non-preinstalled .app
s such as Logic, Final Cut, Google Chrome etc.
(tested on macOS 11.0.1 on MacBook Pro 13-inch, M1, 2020)