The latest version of macOS (11.0.1 Beta, 20B5022a) requires that every native ARM64 application is code signed (this restriction does not apply to x86-64 applications).
https://eclecticlight.co/2020/08/22/apple-silicon-macs-will-require-signed-code/Therefore, even compiling a "hello world" example requires a code sign:
$fpc hello.pas
Free Pascal Compiler version 3.3.1 [2020/07/22] for aarch64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Darwin for AArch64
Compiling i2nii.pas
Assembling (pipe) hello.pas
Linking i2nii
15 lines compiled, 0.1 sec
$./hello
zsh: killed ./hello
$codesign -s - ./hello
$./hello
Hello world!
Dmitry-
Would it be possible to have Lazarus code sign with each compile. At the moment, when the user select Run/RunWithoutDebugging, the new application is built, but it will not launch as the newly compiled executable is not code signed (so the user needs to do this manually).
Jonas-
Can you update your excellent manual to describe installation on Apple Silicon. For example, the created executable ppca64 must be code signed:
https://wiki.freepascal.org/macOS_Big_Sur_changes_for_developers#ARM64.2FAArch64.2FAppleSilicon_SupportIndeed, in addition to the Lazarus executable, a lot of other executables must be code signed, in my testing the minimal set was
codesign -s - startlazarus
codesign -s - lazarus
codesign -s - /usr/local/bin/fpc
codesign -s - /usr/local/bin/ppca64
codesign -s - /usr/local/bin/fpcres