构建 Apple 的 "Son of Grab" 项目
Building Apple's "Son of Grab" project
我想构建和学习 Apple 的演示项目 Son of Grab。
我下载了存档并用 Xcode 6.1 打开了项目。构建失败,出现错误:
Undefined symbols for architecture x86_64:
"_ChangeBits", referenced from:
-[Controller awakeFromNib] in Controller.o
-[Controller toggleOffscreenWindows:] in Controller.o
-[Controller toggleDesktopWindows:] in Controller.o
-[Controller toggleFramingEffects:] in Controller.o
-[Controller toggleOpaqueImage:] in Controller.o
-[Controller toggleShadowsOnly:] in Controller.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我尝试将基础 SDK 更改为 10.6 然后 10.7,希望代码依赖于过时的 SDK。但是它仍然失败并出现相同的错误。
在这里找到答案:Linking error for inline functions
in Controller.m, line 71, add "static" in front of "inline"
我想构建和学习 Apple 的演示项目 Son of Grab。
我下载了存档并用 Xcode 6.1 打开了项目。构建失败,出现错误:
Undefined symbols for architecture x86_64:
"_ChangeBits", referenced from:
-[Controller awakeFromNib] in Controller.o
-[Controller toggleOffscreenWindows:] in Controller.o
-[Controller toggleDesktopWindows:] in Controller.o
-[Controller toggleFramingEffects:] in Controller.o
-[Controller toggleOpaqueImage:] in Controller.o
-[Controller toggleShadowsOnly:] in Controller.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我尝试将基础 SDK 更改为 10.6 然后 10.7,希望代码依赖于过时的 SDK。但是它仍然失败并出现相同的错误。
在这里找到答案:Linking error for inline functions
in Controller.m, line 71, add "static" in front of "inline"