While attempting to compile my C program, running the following command:
gcc pthread.c -o pthread
Returns:
Agreeing
I had the same issue, after accepting the license launching XCode or running sudo xcodebuild -license accept i had to restart my Mac – otherwise it did not worked.
sudo xcodebuild -license accept