2014-02-24 59 views
1

我是一位新的IOS開發人員。我試圖在Xcode中創建許多iOS項目,但都顯示了Build Failed錯誤。用HelloWorld,我可以得到它與AutoLayout有關 - 我沒有選擇,就是這樣。IOS:Building Fails

有了這個其他項目,我找不出錯誤的原因。的錯誤是:` 構建目標CorporateChat

CompileC /Users/admin/Library/Developer/Xcode/DerivedData/CorporateChat- 
    egudgkrhstksmbhhcldjmempbwsj/Build/Intermediates/CorporateChat.build/Debug-iphonesimulator 
    /CorporateChat.build/Objects-normal/i386/TC_LoginDataController.o 
    CorporateChat/TC_LoginDataController.m normal i386 objective-c 
    com.apple.compilers.llvm.clang.1_0.compiler 

     cd "/Users/admin/Documents/Kush InfoSystems/IOS Project/CorporateChat" 

     setenv LANG en_US.US-ASCII 
     setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform 
    /Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin: 
    /sbin" 

     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang 
    -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro- 
    backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/admin/Library 
    /Developer/Xcode/DerivedData/ModuleCache -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field- 
    initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties 
    -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc- 
    repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch 
-Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value 
-Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants 
-Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten- 
64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared- 
selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents 
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -fexceptions 
-fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc- 
abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=7.0 -iquote /Users/admin/Library 
/Developer/Xcode/DerivedData/CorporateChat-egudgkrhstksmbhhcldjmempbwsj/Build/Intermediates 
/CorporateChat.build/Debug-iphonesimulator/CorporateChat.build/CorporateChat-generated-files.hmap 
-I/Users/admin/Library/Developer/Xcode/DerivedData/CorporateChat-egudgkrhstksmbhhcldjmempbwsj/Build 
/Intermediates/CorporateChat.build/Debug-iphonesimulator/CorporateChat.build/CorporateChat- 
own-target-headers.hmap -I/Users/admin/Library/Developer/Xcode/DerivedData/CorporateChat- 
egudgkrhstksmbhhcldjmempbwsj/Build/Intermediates/CorporateChat.build/Debug-iphonesimulator 
/CorporateChat.build/CorporateChat-all-target-headers.hmap -iquote /Users/admin/Library/Developer 
/Xcode/DerivedData/CorporateChat-egudgkrhstksmbhhcldjmempbwsj/Build/Intermediates/CorporateChat.build 
/Debug-iphonesimulator/CorporateChat.build/CorporateChat-project-headers.hmap -I/Users/admin/Library 
/Developer/Xcode/DerivedData/CorporateChat-egudgkrhstksmbhhcldjmempbwsj/Build/Products/Debug- 
iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains 
/XcodeDefault.xctoolchain/usr/include -I/Users/admin/Library/Developer/Xcode/DerivedData 
/CorporateChat-egudgkrhstksmbhhcldjmempbwsj/Build/Intermediates/CorporateChat.build/Debug- 
iphonesimulator/CorporateChat.build/DerivedSources/i386 -I/Users/admin/Library/Developer/Xcode 
/DerivedData/CorporateChat-egudgkrhstksmbhhcldjmempbwsj/Build/Intermediates/CorporateChat.build 
/Debug-iphonesimulator/CorporateChat.build/DerivedSources -F/Users/admin/Library/Developer/Xcode 
/DerivedData/CorporateChat-egudgkrhstksmbhhcldjmempbwsj/Build/Products/Debug-iphonesimulator 
-include /Users/admin/Library/Developer/Xcode/DerivedData/CorporateChat-egudgkrhstksmbhhcldjmempbwsj 
/Build/Intermediates/PrecompiledHeaders/CorporateChat-Prefix-eiiyuowfsnsnqidczavfrfsfvsrz 
/CorporateChat-Prefix.pch -MMD -MT dependencies -MF /Users/admin/Library/Developer/Xcode/DerivedData 
/CorporateChat-egudgkrhstksmbhhcldjmempbwsj/Build/Intermediates/CorporateChat.build/Debug- 
iphonesimulator/CorporateChat.build/Objects-normal/i386/TC_LoginDataController.d --serialize- 
diagnostics /Users/admin/Library/Developer/Xcode/DerivedData/CorporateChat- 
egudgkrhstksmbhhcldjmempbwsj/Build/Intermediates/CorporateChat.build/Debug-iphonesimulator 
/CorporateChat.build/Objects-normal/i386/TC_LoginDataController.dia -c /Users/admin/Documents/Kush\ 
InfoSystems/IOS\ Project/CorporateChat/CorporateChat/TC_LoginDataController.m -o /Users/admin/Library 
/Developer/Xcode/DerivedData/CorporateChat-egudgkrhstksmbhhcldjmempbwsj/Build/Intermediates 

/CorporateChat.build/Debug-iphonesimulator/CorporateChat.build/Objects-normal 

/i386/TC_LoginDataController.o 

    fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform 
    /Developer/SDKs/iPhoneSimulator7.0.sdk/usr/include/objc/NSObject.h' has been modified since the 
    precompiled header '/Users/admin/Library/Developer/Xcode/DerivedData/ModuleCache/1X5NZJEZL1PED 
    /ObjectiveC.pcm' was built 

    note: after modifying system headers, please delete the module cache at '/Users/admin/Library 
    /Developer/Xcode/DerivedData/ModuleCache/1X5NZJEZL1PED' 
    1 error generated. 

我得到這樣的5個錯誤與SBJasonStreamWriterAccumelator.m,SBJasonStreamParserAccumelator.m,SBJasonStreamParseState.m,SBJasonWriter.m和我的實現類之一。我剛剛添加了SBJason到項目中,沒有實現任何功能。

任何人都可以請幫助我讓我的項目建立成功。從開始,我只能看到Build Failed。我的座右銘是我希望應用程序能夠在大多數平臺上執行 - 我計劃支持從4到最新的7個。我是否缺失或需要任何項目設置中的更正!

是否需要做任何設置更改或導致此錯誤的原因。請幫幫我。

謝謝

+0

嘗試清理該項目並再次運行。 –

+0

「NSObject.h已被修改...」。這很討厭,應該永遠不會發生,除非你最近改變了Xcode版本,在這種情況下,乾淨的應該把它整理出來。 – trojanfoe

+0

Command + Shitf + K – Eugene

回答

3

感謝所有的朋友。 上面沒有任何幫助,但項目&構建設置中的某些更改幫助我解決了問題。

我更改了以下內容,然後獲得了成功。 *部署目標 - 從7變爲6.0 在Build設置: - *基礎SDK - 從 「最新的iOS 7.0」 到 「的iOS 7.0」 * iOS的部署目標 - 從7.0改到iOS 6.0

共享我因爲它可能會幫助像我這樣的其他人。

想知道爲什麼從7.0更改爲6.0?這是否意味着7.0不穩定或兼容?

+0

同樣在這裏,不要爲什麼它將改變部署目標設置爲6.0 – Nikunj

+0

你是偉人+1 – pankaj

相關問題