title: How to accept Xcode license?
body: <p>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.</p>
  
  <p>The error message I get in MATLAB is : </p>
  
  <blockquote>
    <p>Xcode is installed, but its license has not been accepted. Run Xcode
    and accept its license agreement.</p>
  </blockquote>
  
  <p>I have accept its license  through the terminal command <code>sudo xcodebuild -license</code> then <code>-q</code> then agree but I still get the same error message. I have also accepted the license when first opening the application.</p>
  
  <p>Do someone know how to solve this problem?</p>
  
  <p>Xcode : version 6.4 and Matlab R2015a</p>