• Register
0 votes
64 views

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.9k points

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.

36.1k points
0 votes

Solution:

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.

17.7k points
edited by

Related questions

0 votes
1 answer 59 views
59 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 46 views
46 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 20 views
20 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 quizzBabes 160 points
0 votes
1 answer 48 views
48 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 29 views
29 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