我是新的IOS开发人员。我尝试在Xcode中创建许多iOS项目,但都显示了Build Failed错误。使用HelloWorld,我可以得到它与AutoLayout相关 - 我未被选中,就是这样。
通过这个其他项目,我无法弄清楚错误的原因。错误是:` 建立目标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.
我在SBJasonStreamWriterAccumelator.m,SBJasonStreamParserAccumelator.m,SBJasonStreamParseState.m,SBJasonWriter.m以及我的一个实现类中遇到了这样的5个错误。我刚刚将SBJason添加到项目中,没有实现任何功能。
任何人都可以帮助我让我的项目构建成功。从一开始我就得到了Build Failed。我的座右铭是我希望应用程序在大多数平台上执行 - 我计划从4到最新支持即7.我是否缺少或需要在任何项目设置中进行任何更正!!
我是否需要进行任何设置更改或导致此错误的原因。请帮帮我。
由于
答案 0 :(得分:3)
感谢所有朋友。 以上没有任何帮助,但Project& amp;构建设置帮助我解决了问题。
我更改了以下内容,然后获得了Build Succeeded。 *部署目标 - 从7更改为6.0 在构建设置中: - *基础SDK - 从“最新的iOS 7.0”到“iOS 7.0” * iOS部署目标 - 从7.0更改为iOS 6.0
分享我的解决方案,因为它可能会帮助像我这样的其他人。
想知道为什么从7.0改为6.0工作了???这是否意味着7.0不稳定或兼容?