iphone - IOS编译源代码出错?

标签 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

最佳答案

您遵循说明了吗?我尝试在克隆主目录后构建它,遇到很多问题,然后重新阅读说明并发现:

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 构建的一切都很好。

关于iphone - IOS编译源代码出错?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18488292/

相关文章:

ios - 从 UIPageViewController 和/或其数据源获取 TRUE 当前页面

ios - 用于设计屏幕外 subview 的 Storyboard

ios - 标识符为 ... 的应用程序组不可用。请输入不同的字符串

iphone - 你如何选择核心数据中具有最大值的条目?

ios - iPhone 中的 bonjour 服务结果不一致

iphone - 提醒应用程序 UI 是如何创建的?

objective-c - 用于 iPad 应用程序的控件/设计模式,该应用程序具有通向详细 View 的两级表

ios - 如何从 parse.com 获取数据并将其设置在文本字段中?

ios - 仅将来自 NSDictionary 的更新数据解析为核心数据

ios - 覆盖 iOS 框架符号