Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to accept Xcode license?

Tags:

xcode

I've been searching the web to look for how to accept Xcode in order to use Xcode to recompile a MATLAB Windows file for a MAC but I did not find any relevant answer.

The error message I get in MATLAB is :

Xcode is installed, but its license has not been accepted. Run Xcode and accept its license agreement.

I have accept its license through the terminal command sudo xcodebuild -license then -q then agree but I still get the same error message. I have also accepted the license when first opening the application.

Do someone know how to solve this problem?

Xcode : version 6.4 and Matlab R2015a

like image 466
sarah Avatar asked Jul 13 '15 13:07

sarah


2 Answers

You can use the following command to directly accept the license:

sudo xcodebuild -license accept
like image 137
Ronan Boiteau Avatar answered Oct 12 '22 22:10

Ronan Boiteau


If you are using the command line then go through the entire license by entering space until you get to the end where you will be presented with:

By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel]

type "agree" and return

Alternatively just launch Xcode by double clicking it's icon and when presented with the license agreement accept it.

Updated for new information:

It seems this may be a MATLAB issue. What version of Xcode are you running? Check with MATLAB to see if that is a supported version.

like image 4
zaph Avatar answered Oct 12 '22 22:10

zaph