使用Xcode 9.4.1在Catalina 10.15.2中的Matlab R2017b中从C / C ++构建MEX

时间:2019-12-30 21:50:38

标签: xcode matlab macos-catalina

在Matlab R2017b中遇到以下错误:

Error using mex
dyld: Symbol not found: _OBJC_IVAR_$_NSFont._fFlags
  Referenced from: /Applications/Xcode.9.4.1.app/Contents/SharedFrameworks/DVTDocumentation.framework/Versions/A/../../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
  Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
 in /Applications/Xcode.9.4.1.app/Contents/SharedFrameworks/DVTDocumentation.framework/Versions/A/../../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
xcrun: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly!
xcrun: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch

我已经下载了应该与Matlab R2017.b兼容的旧版Xcode 9.4,并设置了路径:

> xcode-select -p
/Applications/Xcode.9.4.1.app/Contents/Developer

任何建议都是伟大的!

0 个答案:

没有答案