• Register
0 votes

Problem :

While trying to compile my C program I encountered following error
agreeing to the xcode/ios license requires admin privileges, please re-run as root via sudo.
6 5 3
6,930 points

Please log in or register to answer this question.

2 Answers

0 votes

Solution :

I also got stuck as I was trying to a go get it was related to git. Please find the solution as follows:

  1. I tried the following in the terminal:

    sudo xcodebuild -license
  2. That opened the agreement. Now you need to go all the way to end and type "agree".

That will take care of all go get issues.

The solution was quite interesting i hope it helps you.

9 7 4
38,600 points
0 votes


Open up Xcode, and receive the new user agreement. This was happening since a new version of Xcode was downloaded and the new agreement was not accepted.

sudo xcodebuild -license

will take care of it with no unease on the command line. Remember that you'll have to manually scroll through the license, and agree to its terms at the end, unless you include "accept" to the command line

sudo xcodebuild -license accept

Here is how was able to solve it .

  1. I affixed the following in terminal:
sudo xcodebuild -license
  1. This will released the agreement. Then, Go all the way to end and type "agree".

That takes care of go obtain issues.

You don't require to idle around with any command :)

At one time the XCode is updated, released the Xcode IDE program. Please receive terms and conditions.

You are all set to go :

Consenting to the Xcode/iOS license claims admin privileges, please re-run as root via sudo.

A new version of OSX or XCode was installed and Apple needs you to agree to their Terms and Conditions. Hence only launch Xcode and "Agree" to them.

Ensue these steps:

  1. Open Terminal.

  2. Enter this command: sudo xcodebuild --license.

  3. Enter system password.

  4. Agree to the license.

I had the similar problem, after receiving the license launching XCode or running sudo xcodebuild -license accept i had to restart my Mac – otherwise it did not performed.

10 6 4
31,120 points

Related questions

0 votes
1 answer 1 view
1 view
Question : How to accept Xcode license in a automation way?
asked 2 hours ago Shovo210 2.7k points
0 votes
1 answer 89 views
Problem : All of a sudden I am unable to build my project. I started to get the following compiler error: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool failed with exit code 255 I got this error for a lot of my xib files. Any clues what is happening and what will be the Solution for it? Please Note : I am using Xcode 4.6 and iOS 6.1.
asked Nov 20, 2019 peterlaw 6.9k points
0 votes
1 answer 298 views
Problem : Xcode as of 6.3 is no longer allowing me to automatically perform the device provisioning for one of my client. Has anybody faced the same issue before? My client has their own bundle ID and it is also the possibility that they may also ... being used for provisioning. I had the workaround for this issue by modifying the app bundle ID and manually completing the provisioning process.
asked Dec 2, 2019 alecxe 7.5k points
0 votes
1 answer 4 views
Problem: the operation couldn’t be completed. (osstatus error -47.)
asked Feb 19 Dan phillip 1.9k points
0 votes
1 answer 9 views
Problem: the file “info.plist” couldn’t be opened because there is no such file.
asked Feb 12 Dan phillip 1.9k points
0 votes
1 answer 839 views
Problem: Installation failed: Can’t Install the Software I am getting following message like: A software update is required to connect to your iPhone. Would you like to download and install this updatenow? Use of this software is subject to the original Software ... the software because it si not currently available from the softwre update server. Can any one help to sort this issue out?
asked Jul 16, 2020 quizzBabes 160 points
0 votes
1 answer 133 views
Problem : I have very simple program HelloWorld is running on iOS. The same program has been running fine for a long time. But recently I noticed that I get the below listed BoringSSL error when my program runs on my ... boringssl_session_errorlog: line 2871 [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alert
asked Dec 4, 2019 alecxe 7.5k points
0 votes
1 answer 44 views
Problem : I want to run the NVCC to compile my CUDA program on my Mac. But when I try to run the NVCC, I am facing below error message: "nvcc fatal : The version ('70300') of the host compiler ('Apple clang') is not supported". I tried updating the XCode version to 7.3, and the Mac version to 10.11.4. But I am facing the same error. How can I revert my Apple Clang Version?
asked Nov 30, 2019 alecxe 7.5k points
0 votes
1 answer 723 views
Problem : I got an error on Xcode saying that there was no information about the view controller as follows: Could not insert new outlet connection: Could not find any information for the class named Why am I getting this error?
asked Nov 28, 2019 alecxe 7.5k points
0 votes
1 answer 4 views
Problem: itunes was unable to load dataclass information from sync services.
asked Feb 13 Shovo210 2.7k points