Hello again !
Sorry, but I cannot find any "crash report" in the MacOS Console.
On the left, I have no crash report item (Rapports d'échec in French). I have a "Diagnostic report" (Rapports de diagnostic in French), but there is nothing in it for my executable.
Conversely, I now can find in the Console a "taskgated" entry :
0 déboguer 15:18:51.953388+0200 taskgated open(/Users/<...>/simplest_ever_c_program,0x0,0x1b6) = 3
(subsystem : com.apple.securityd ; category : unixio ; threadid : 0x25a16a ; PID : 1001)
[quote='904760022, DTS Engineer, /thread/845014?answerId=904760022#904760022']
Well, that’s weird. What exactly is in simplest_ever_c_program.c?
[/quote]
#include <stdio.h>
int main() {
printf("Hello World ! Gratz : this progam could be run from the Terminal !\n");
return 0;
}
(simple, indeed :))
[quote='904760022, DTS Engineer, /thread/845014?answerId=904760022#904760022']
If you build the program in the normal way, what does this report: codesign -d -vvv a.out
[/quote]
$ clang simplest_ever_c_program.c
$ codesign -d -vvv a.out
a.out: code object is not signed at all
[quote='904760022, DTS Engineer, /thread/845014?answerId=904760022#904760022']
And then what happens if you do this:
% cp a.out a2.out
% ./a2.out
[/quote]
$ clang simplest_ever_c_program.c
$ cp a.out a2.out
$ ./a2.out
zsh: killed ./a2.out
thanks again
Nicolas
Topic:
Code Signing
SubTopic:
General