avec Xcode 4.6, sous Mac OS X 10.8.2, pour compiler hello.c, je lancé la commande xcrun recommandé dans xcrun gcc cannot find header files mais toujours reçu l'erreur que le fichier d'en-tête stdio .h ne peut pas être trouvé.xcrun clang --sysroot ne peut pas trouver stdio.h
$ xcrun clang --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/ -o hello hello.c
hello.c:2:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^
1 error generated.
$ cat hello.c
/* C program, Hello World */
#include <stdio.h>
int main()
{
printf("Hello World \n");
}