Xcode 6.0.1 and MATLAB 8.1 (2013a)

2 views (last 30 days)
Emmanuel
Emmanuel on 16 Oct 2014
Commented: qdeng on 30 Oct 2014
Hello guys,
I'm trying to generate a C code from my MATLAB function and I catch an error since Xcode was updated on my Mac OSX Maverick...
Here is the error :
xcodebuild: error: SDK "macosx10.8" cannot be located.
3 xcrun: error: unable to find utility "clang", not a developer tool or in PATH
4 gmake: *** [homography_initialize.o] Error 72
I had already fixed the problem for Xcode 5.0 by editing mexopt.sh on MATLAB root system by replace 10.6 SDK by 10.7.
Now, it's asking for 10.8 and I don't know if I have to replace it by 10.7 or 10.6...
Can anyone help me to solve this problem ?
Thank you for helping !
Muth.
  3 Comments
Brian
Brian on 22 Oct 2014
Hello,
I fixed mine by installed XCode 4.6.3. You can do this by going to apple's website and "becoming a developer" which is free
You can then download 4.6.3 (and delete your newer XCode) so that Simulink will run. This was the only workaround that worked for me, as the other ones did not work for R2013a using XCode 6.0.1 on OSX Yosemite.
qdeng
qdeng on 30 Oct 2014
I also updated to Xcode 6.0 and OS Yosemite and have been using R2013a. If I remember correctly, last year after getting macos 10.9, I followed this link to set up mexopts.sh.
So currently I just replace each occurrence of "10.9" with "10.10" in the mexopts.sh, it seems to work well. Hope it will help.

Sign in to comment.

Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!