mach_star框架XCode链接问题

时间:2012-03-09 18:26:00

标签: objective-c xcode macos

我正在尝试在此处构建DisposeWindow + Beep_Injector示例项目:https://github.com/rentzsch/mach_star并且无法正确连接与应用程序项目链接的框架(mach_inject_bundle)。

这是我得到的错误:

Ld build/Development/DisposeWindow+Beep.bundle/Contents/MacOS/DisposeWindow+Beep normal x86_64
    cd /Users/me/repos/mach_star/DisposeWindow+Beep
    /Developer/usr/bin/llvm-gcc-4.2 -arch x86_64 -bundle -L/Users/me/repos/mach_star/DisposeWindow+Beep/build/Development -F/Users/me/repos/mach_star/DisposeWindow+Beep/build/Development -filelist /Users/me/repos/mach_star/DisposeWindow+Beep/build/DisposeWindow+Beep.build/Development/DisposeWindow+Beep.build/Objects-normal/x86_64/DisposeWindow+Beep.LinkFileList -framework Carbon -framework AudioToolbox -o /Users/me/repos/mach_star/DisposeWindow+Beep/build/Development/DisposeWindow+Beep.bundle/Contents/MacOS/DisposeWindow+Beep

Undefined symbols for architecture x86_64:
  "_mach_override", referenced from:
      _load in DisposeWindow+Beep.o
     (maybe you meant: _mach_override_ptr)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status

所有单个项目都构建良好,但我无法构建父项目......

以下是所有配置的截图:http://i.imgur.com/vaLTu.png

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

没有mach_override,只有mach_override_ptr。你必须使用那个功能。