尝试在 OSX 10.9.4 上使用 xcode 编译 afloat - 不再支持垃圾收集

尝试在 OSX 10.9.4 上使用 xcode 编译 afloat - 不再支持垃圾收集

我按照用漂浮物制作单个窗口

以下是帖子中的说明:

 Download the SIMBL zip file
 Unzip the file
 Double-click/install SIMBL-0.9.9.pkg
 Create SIMBL bundle dir: mkdir ~/Library/Application\ Support/SIMBL/Plugins/
 Reboot
 Install from the git repo:

$ git clone https://github.com/millenomi/afloat.git
$ cd afloat
$ xcodebuild -configuration Release install
  # verbose output trimmed, except for last line:
  ** INSTALL SUCCEEDED **
$ mv /tmp/Afloat.dst/Users/`whoami`/Library/Bundles/Afloat.bundle/ ~/Library/Application\ Support/SIMBL/Plugins/

我严格按照说明操作,但对我来说并不起作用。

在 OS 10.9.4 上安装 xcode 6.0.1 并运行 xcodebuild -configuration Release install 后,我收到了一堆错误消息。

以下是每个文件之后我收到的转储类型,以及该过程结束时的输出:

`error: garbage collection is no longer supported

** INSTALL FAILED **


The following build commands failed:
    CompileC build/Afloat.build/Release/Afloat.build/Objects-normal/x86_64/Afloat.o Afloat.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC build/Afloat.build/Release/Afloat.build/Objects-normal/x86_64/AfloatStorage.o AfloatStorage.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC build/Afloat.build/Release/Afloat.build/Objects-normal/x86_64/AfloatPanel.o AfloatPanel.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC build/Afloat.build/Release/Afloat.build/Objects-normal/x86_64/AfloatPanelController.o AfloatPanelController.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(4 failures)

我下载的版本是否与 OSX 10.9.4 Maverick 不兼容?这是怎么回事?

答案1

尝试xcodebuild启用GCC_ENABLE_OBJC_GC=unsupported(现在不受支持的)垃圾收集。

相关内容