SecTaskLoadEntitlements failed error=22
So that shouldn't happen. Google says 22 is " invalid argument (parameter) was given."
But the only param, is the name of the exe.
So now the question is why....
Maybe, space in the filename. Could be wrongly escaped when passed to lldb.
Or, the app bundle is broken.
Lazarus creates a bundle, with a sym-link for the exe, and the symlink points to outside the bundle, where the exe is created by the compiler.
Move the existing bundle away, and in "Project options" should be a page where you can create a new bundle.
Also make sure in the path settings, that the exe is compiled to the default location (that you havent changed the "output file").