Xcode error, plz help

조회 수: 7 (최근 30일)
rajesh ks
rajesh ks 2015년 10월 20일
댓글: rajesh ks 2015년 10월 21일
Helo, I am using OS X Yosemite, version 10.10.5. The matlab using is matlab2014b. The Xcode using is Xcode-beta. when I am trying to simulate a simulink file with user defined matlab program, the following error appears. I tried a lot to eliminate the error but nothing works. plz help.
Warning: Xcode appears to be installed, but it has not been configured. Run "osascript -e 'do shell script "xcode-select -switch /Applications/Xcode.app" with administrator privileges'" to configure Xcode. You must be an administrator of this computer to complete this action.
No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2014b/maci64.html. gmake: * [solar_module8_sfun.o] Error 255 Component: Make | Category: Make error

채택된 답변

Walter Roberson
Walter Roberson 2015년 10월 20일
Start up the Terminal application, which you can find in /Applications/Utilities . When you get to the command prompt, command
sudo xcode-select -switch /Applications/Xcode.app
and authenticate when it prompts you for your password.
After that xcode will be selected and you should be able to proceed.
Note: be sure that the files have been edited as described in http://uk.mathworks.com/matlabcentral/answers/243868-mex-can-t-find-compiler-after-xcode-7-update-r2015b and notice the prefdir files mentioned in the comments on one of the Answers in that Question.
  댓글 수: 3
Walter Roberson
Walter Roberson 2015년 10월 21일
편집: Walter Roberson 2015년 10월 21일
I recommend that you switch to using regular XCode 7 instead of using XCode beta.
After you install XCode, start up XCode and agree to the license agreement. Then run the above sudo command again. Then apply the patch described here . When that is all done, go in to MATLAB and use
mex -setup
rajesh ks
rajesh ks 2015년 10월 21일
Dear Sir, I uninstalled xcode beta and installed xcode7.Then run the sudo command. After this I simulated the simulink file, to my surprise it is working and running perfectly.Thanks a lot sir. Thank you very much. End to a long standing problem with matlab.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by