0

我从 github下载了 iOS 着色书的源代码:

当我尝试编译时,我得到了这些错误,我不明白它们的意思:

    0 clang 0x0000000100c57bb2 main + 12932498
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: i386-apple-darwin11.4.2
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
clang: error: unable to execute command: Segmentation fault: 11
clang: note: diagnostic msg: Error generating preprocessed source(s).
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 254
4

2 回答 2

1

您是否按照说明进行操作?我只是在克隆主目录后尝试构建它,遇到很多问题,然后重新阅读说明并发现:

INSTRUCTIONS

  Clone the coloring-book-ios repository, or alternatively, clone
  your fork of the coloring-book-ios repository, along with its
  submodules.

  For git version 1.6.5 or higher, run:

    git clone --recursive https://github.com/byronsanchez/coloring-book-ios.git
    cd coloring-book-ios
    Assets/Scripts/build.sh all

  For other versions of git, run:

    git clone https://github.com/byronsanchez/coloring-book-ios.git
    cd coloring-book-ios
    git submodule update --init
    Assets/Scripts/build.sh all

一旦我遵循 1.6.5 或更高版本(并忽略了 build.sh 警告,因为它指示您在该文件中执行操作),使用 Xcode 4.6.3 构建的一切都很好。

于 2013-08-28T13:11:36.477 回答
0

这是因为该项目引用了 Toast+UIView.h 但在根级别不包含该类别。NIBs、Raw 和 Vendor 是主项目的子模块。

于 2013-08-28T13:12:21.717 回答