필터 지우기
필터 지우기

how to compile old C file in 64-bit api

조회 수: 2 (최근 30일)
Nisha Mohd Rafiq
Nisha Mohd Rafiq 2020년 5월 17일
댓글: Rashed Mohammed 2020년 5월 26일
I receive this error when compiling C file in Matlab:
Building with 'Xcode with Clang'.
Error using mex
xcodebuild: error: SDK "macosx10.15.4" cannot be located.
xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
-sdk macosx10.15.4 -find clang 2> /dev/null' failed with exit code 16384: (null)
(errno=No such file or directory)
xcrun: error: unable to find utility "clang", not a developer tool or in PATH

답변 (1개)

Rashed Mohammed
Rashed Mohammed 2020년 5월 20일
Hi Nisha,
It seems like you do not have Xcode Command Line Tools installed which is necessary to have clang, macOS SDK and other toolchain related commands to be used. Please follow the official Apple Documentation or the link provided by Walter to install them. Later you can use the below link, if you have issues with 64bit API
Hope this helps!
  댓글 수: 2
Nisha Mohd Rafiq
Nisha Mohd Rafiq 2020년 5월 20일
I have installed it, I still receive the same error...
Rashed Mohammed
Rashed Mohammed 2020년 5월 26일
Hi Nisha,
There is a bug report reported regarding this issue https://www.mathworks.com/support/bugreports/details/2208336. Can you try the Workaround mentioned and see if it solves the issue.

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

카테고리

Help CenterFile Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by