Hi,
when I launch an native Apple app on an M1 Silicon (like e.g. Calculator) the launch with LDDB fails as the command line is advising to run the arm64e instead of a arm64 architecture. See the terminal output below. Launching the debugger fails as the command arch doesn't find the arm64e architecture (it would run if the arch command would request an arm64 architecture). Here is the terminal output that is execute on launching:
Last login: Tue Sep 21 18:37:17 on ttys001
/bin/bash -c 'arch -arch arm64e '/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/darwin-debug' --unix-socket=/tmp/sSwUl3 --arch=arm64e --working-dir '/' --disable-aslr --env='OS_ACTIVITY_DT_MODE=enable' --env='XPC_SERVICE_NAME=application.lazarus.freepascal.ide.1155997.1142399' -- '/System/Applications/Calculator.app/Contents/MacOS/Calculator' ; echo Process exited with status $?';exit
jst@macMini-M1 ~ % /bin/bash -c 'arch -arch arm64e '/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/darwin-debug' --unix-socket=/tmp/sSwUl3 --arch=arm64e --working-dir '/' --disable-aslr --env='OS_ACTIVITY_DT_MODE=enable' --env='XPC_SERVICE_NAME=application.lazarus.freepascal.ide.1155997.1142399' -- '/System/Applications/Calculator.app/Contents/MacOS/Calculator' ; echo Process exited with status $?';exit
arch: posix_spawnp: /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/darwin-debug: Bad CPU type in executable
Process exited with status 1
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
How to fix? Where is this launch script defined (I searched for it but can't find it) ? Any hint welcome!
Side note: I compiled the 2.2.0RC1 version of the Lazarus IDE for the native aarch64 CPU on an M1 miniMac and it runs stable for me beside this issue described above.