• Register
0 votes
152 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 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

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.

10 6 4
31,120 points

Related questions

0 votes
1 answer 19 views
19 views
Question : How to accept Xcode license in a automation way?
asked Feb 28 Sabbir Hossain 14.6k points
0 votes
1 answer 18 views
18 views
Problem : xcode couldn't find any ios app development provisioning profiles matching
asked Feb 28 Sabbir Hossain 14.6k points
0 votes
1 answer 2 views
2 views
Problem: My Xcode automatically updated now I'm getting this error:The 'Apple Developer Program License Agreement' has been updated. In order to access certain membership resources, you must accept the latest license agreement.I feel so dumb. Where do I go to accept this?
asked 4 days ago sumaiya simi 43.9k points
0 votes
1 answer 4 views
4 views
Problem: I am trying to rebuild an ios app, that previously had no issues (first rebuild in 6 months or so). Environment is OSX 10.13.5 with all the latest updates, Xcode 9.4.1, Ionic is 3.20.0. Local cordova ... /kerickhowlett/Documents/PhoneProjects/ABM/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/kerickhowlett/Documents/PhoneProjects/ABM/platforms/ios/build/sharedpch What am I missing?
asked Apr 30 muktaa 34.6k points
0 votes
1 answer 120 views
120 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 567 views
567 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 8 views
8 views
Problem: What are my options for dealing with this issue? composer is not installed. please run "php composer.phar update" in the root to install composer
asked Apr 1 rakib1 51.5k points
0 votes
1 answer 4 views
4 views
Problem: Why I got the error > An app id with identifier is not available. please enter a different string.
asked Apr 30 ummeshani 9.5k points
0 votes
1 answer 5 views
5 views
Problem: I get the "Xcode cannot launch MyApp on My iPad because the device is locked. Unlock device to continue" message upon hitting build&run on XCODE 8.2 on an Ipad Air 2. Does anyone know any way around?
asked Apr 12 anika11 32.2k points
0 votes
1 answer 2 views
2 views
Problem: Xcode 10. When I try to upload app to TestFlight I get the following error "Your account does not have permission to create iOS App Store provisioning profiles. ",what can I do now ?
asked Apr 28 salim1 60.6k points