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
– Depilategit init
without doing this. – Dayaksvn status
. Not sure what is the relation between svn and xcode. – Pumpkinseedxcodebuild -license
? I had this happen when runningmake
. Recommending to runmake
via sudo is idiotic. Just venting. – Egeriasudo xcodebuild -license accept
- which works on macOS Sierra here, but might not work on earlier versions – Osswald