2013-08-28 102 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是主項目的子模塊。