2013-08-28 40 views
0

我下载了一款iOS图画书from 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 
+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构建的一切都很好。

+0

对不起,我真的不明白,我怎么能忽略build.sh警告?我没有真正理解说明,对不起,英语不是我的第一语言,请给我更多的细节,谢谢 – Cairoeditor

+1

当build.sh询问是否继续时,输入“y”(即字符y)并返回。只有这样你才能打开这个项目。我使用vi打开build.sh,并在顶部显示忽略警告并输入y。 –

+0

好吧我80%的理解,我在xcode上运行项目的方式是点击“coloring-bock.xcodeproj”,然后点击从产品菜单运行,但它似乎需要“运行”构建.sh文件,如果这是正确的?你能告诉我该怎么做?再次感谢。 – Cairoeditor

0

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