While attempting to compile my C program, running the following command:
gcc pthread.c -o pthread
Returns:
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
and my code does not compile.
Why is this happening and how can I fix this problem?
sudo xcodebuild -license
– Andy Barbourgit init
without doing this. – ruffinsudo xcodebuild -license accept
- which works on macOS Sierra here, but might not work on earlier versions – ssc