我正在尝试在OS X 10.7.4中安装valgrind。
我遵循these条款。一切都很好,直到我运行make
,这给了我这个错误:
...
Making all in coregrind
(cd m_mach && mig /usr/include/mach/mach_vm.defs /usr/include/mach/task.defs /usr/include/mach/thread_act.defs /usr/include/mach/vm_map.defs)
2012-07-07 20:45:26.771 xcodebuild[82091:70b] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/DVTFoundation/DVTFoundation-580/Framework/Classes/DeveloperStructure/DVTPlatform.m:430
Details: The Mac OS X platform is missing - cannot set a default platform.
Object: <DVTPlatform>
Method: +loadAllPlatforms
Thread: <NSThread: 0x40010a220>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x00000001023d4448 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DVTFoundation)
1 0x00000001023d4304 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x00000001023735de +[DVTPlatform loadAllPlatforms] (in DVTFoundation)
3 0x000000010255985e IDEInitialize (in IDEFoundation)
4 0x00000001028d374c -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
5 0x000000010236bd9f (in xcodebuild)
6 0x000000010236bc28 (in xcodebuild)
7 0x0000000000000005
/Developer/usr/bin/xcodebuild fails with 6 - Device not configured
/usr/bin/mig: line 174: : command not found
mig: fatal: "<no name yet>", line -1: no SubSystem declaration
make[2]: *** [m_mach/mach_vmUser.c] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
我发现this帖子暗示它可能是Xcode路径的问题,但路径似乎是正确的,如下所示:
$ xcode-select -print-path
/Developer
有人有任何建议吗?
答案 0 :(得分:1)
在OS X 10.7.5上使用Xcode 4.6,我发现我必须运行:
xcode-select /Applications/Xcode.app
答案 1 :(得分:0)
原来我的Xcode安装很旧。更新到当前所有安装完毕后。