IOS错误编译源代码?

时间:2013-08-28 12:44:17

标签: iphone ios objective-c

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

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

    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

2 个答案:

答案 0 :(得分: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构建得很好。

答案 1 :(得分:0)

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

相关问题