Apple LLVM compiler 4.1 Error - ios

Im very new to iOS programming. Im literally just trying to compile an empty project which as far as I know should work but I'm running into an error:
ProcessPCH /users/case4/murphb52/Library/Developer/Xcode/DerivedData/USB1-frxarpuqvqeibygmuqixzogxrplz/Build/Intermediates/PrecompiledHeaders/USB1-Prefix-gsurnmlnnrebssbippyayakjgjix/USB1-Prefix.pch.pth USB1/USB1-Prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd "/Volumes/SP UFD U2/USB1"
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-header -arch i386 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-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 -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -fexceptions -fasm-blocks -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -mios-simulator-version-min=6.0 -iquote /users/case4/murphb52/Library/Developer/Xcode/DerivedData/USB1-frxarpuqvqeibygmuqixzogxrplz/Build/Intermediates/USB1.build/Debug-iphonesimulator/USB1.build/USB1-generated-files.hmap -I/users/case4/murphb52/Library/Developer/Xcode/DerivedData/USB1-frxarpuqvqeibygmuqixzogxrplz/Build/Intermediates/USB1.build/Debug-iphonesimulator/USB1.build/USB1-own-target-headers.hmap -I/users/case4/murphb52/Library/Developer/Xcode/DerivedData/USB1-frxarpuqvqeibygmuqixzogxrplz/Build/Intermediates/USB1.build/Debug-iphonesimulator/USB1.build/USB1-all-target-headers.hmap -iquote /users/case4/murphb52/Library/Developer/Xcode/DerivedData/USB1-frxarpuqvqeibygmuqixzogxrplz/Build/Intermediates/USB1.build/Debug-iphonesimulator/USB1.build/USB1-project-headers.hmap -I/users/case4/murphb52/Library/Developer/Xcode/DerivedData/USB1-frxarpuqvqeibygmuqixzogxrplz/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/users/case4/murphb52/Library/Developer/Xcode/DerivedData/USB1-frxarpuqvqeibygmuqixzogxrplz/Build/Intermediates/USB1.build/Debug-iphonesimulator/USB1.build/DerivedSources/i386 -I/users/case4/murphb52/Library/Developer/Xcode/DerivedData/USB1-frxarpuqvqeibygmuqixzogxrplz/Build/Intermediates/USB1.build/Debug-iphonesimulator/USB1.build/DerivedSources -F/users/case4/murphb52/Library/Developer/Xcode/DerivedData/USB1-frxarpuqvqeibygmuqixzogxrplz/Build/Products/Debug-iphonesimulator --serialize-diagnostics /users/case4/murphb52/Library/Developer/Xcode/DerivedData/USB1-frxarpuqvqeibygmuqixzogxrplz/Build/Intermediates/PrecompiledHeaders/USB1-Prefix-gsurnmlnnrebssbippyayakjgjix/USB1-Prefix.pch.dia -c "/Volumes/SP UFD U2/USB1/USB1/USB1-Prefix.pch" -o /users/case4/murphb52/Library/Developer/Xcode/DerivedData/USB1-frxarpuqvqeibygmuqixzogxrplz/Build/Intermediates/PrecompiledHeaders/USB1-Prefix-gsurnmlnnrebssbippyayakjgjix/USB1-Prefix.pch.pth -MMD -MT dependencies -MF /users/case4/murphb52/Library/Developer/Xcode/DerivedData/USB1-frxarpuqvqeibygmuqixzogxrplz/Build/Intermediates/PrecompiledHeaders/USB1-Prefix-gsurnmlnnrebssbippyayakjgjix/USB1-Prefix.pch.d
fatal error: error in backend: IO failure on output stream.
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
Just wondering does anyone have any solutions or ideas at what I am doing wrong?

You're most likely out of disk space. Where is your build folder located? It might not be allowed to write and causing that error.

Had this issue, tried most things, but in the end an OSX reboot solved the problem for me.

Derek is correct. In my case the RAM disk I use for XCode derived data was full.

Related

How can I fix an "exit code 11" when compiling with Clang?

I am using Xcode version 4.6.3.
For the last two days, everything has been working fine, but today I'm hitting this problem:
ProcessPCH /Users/hits1/Library/Developer/Xcode/DerivedData/oneText-ehzdbhdloyrhhlciicbdjtvrzzeq/Build/Intermediates/PrecompiledHeaders/oneText-Prefix-apnbnwripekzjoazxfvojavjevfd/oneText-Prefix.pch.pth oneText/oneText-Prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/hits1/Desktop/DataIOS/oneText
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-header -arch i386 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-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 -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=6.1 -iquote /Users/hits1/Library/Developer/Xcode/DerivedData/oneText-ehzdbhdloyrhhlciicbdjtvrzzeq/Build/Intermediates/oneText.build/Debug-iphonesimulator/oneText.build/oneText-generated-files.hmap -I/Users/hits1/Library/Developer/Xcode/DerivedData/oneText-ehzdbhdloyrhhlciicbdjtvrzzeq/Build/Intermediates/oneText.build/Debug-iphonesimulator/oneText.build/oneText-own-target-headers.hmap -I/Users/hits1/Library/Developer/Xcode/DerivedData/oneText-ehzdbhdloyrhhlciicbdjtvrzzeq/Build/Intermediates/oneText.build/Debug-iphonesimulator/oneText.build/oneText-all-target-headers.hmap -iquote /Users/hits1/Library/Developer/Xcode/DerivedData/oneText-ehzdbhdloyrhhlciicbdjtvrzzeq/Build/Intermediates/oneText.build/Debug-iphonesimulator/oneText.build/oneText-project-headers.hmap -I/Users/hits1/Library/Developer/Xcode/DerivedData/oneText-ehzdbhdloyrhhlciicbdjtvrzzeq/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/hits1/Library/Developer/Xcode/DerivedData/oneText-ehzdbhdloyrhhlciicbdjtvrzzeq/Build/Intermediates/oneText.build/Debug-iphonesimulator/oneText.build/DerivedSources/i386 -I/Users/hits1/Library/Developer/Xcode/DerivedData/oneText-ehzdbhdloyrhhlciicbdjtvrzzeq/Build/Intermediates/oneText.build/Debug-iphonesimulator/oneText.build/DerivedSources -F/Users/hits1/Library/Developer/Xcode/DerivedData/oneText-ehzdbhdloyrhhlciicbdjtvrzzeq/Build/Products/Debug-iphonesimulator --serialize-diagnostics /Users/hits1/Library/Developer/Xcode/DerivedData/oneText-ehzdbhdloyrhhlciicbdjtvrzzeq/Build/Intermediates/PrecompiledHeaders/oneText-Prefix-apnbnwripekzjoazxfvojavjevfd/oneText-Prefix.pch.dia -c /Users/hits1/Desktop/DataIOS/oneText/oneText/oneText-Prefix.pch -o /Users/hits1/Library/Developer/Xcode/DerivedData/oneText-ehzdbhdloyrhhlciicbdjtvrzzeq/Build/Intermediates/PrecompiledHeaders/oneText-Prefix-apnbnwripekzjoazxfvojavjevfd/oneText-Prefix.pch.pth -MMD -MT dependencies -MF /Users/hits1/Library/Developer/Xcode/DerivedData/oneText-ehzdbhdloyrhhlciicbdjtvrzzeq/Build/Intermediates/PrecompiledHeaders/oneText-Prefix-apnbnwripekzjoazxfvojavjevfd/oneText-Prefix.pch.d
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 11
I don't know about this problem. I've never seen this sort of problem before.
What should I do to fix it?
This link will be helpful. It works for me every time. Apple LLVM error occurs when you are running you program after every minute. Means you are running the program for testing a lot. Hope that link helps you.

apple llvm 5.1 error clang

while building my app it gives me APPLE LLVM 5.1 error
The description of error is given below,
ProcessPCH /Users/ankit/Library/Developer/Xcode/DerivedData/GoogleAPIParsing-blyffdbdszklenaxwqqnwiriiqjr/Build/Intermediates/PrecompiledHeaders/GoogleAPIParsing-Prefix-gwcwubtrxmgndfbvpagazcbdlfnr/GoogleAPIParsing-Prefix.pch.pch GoogleAPIParsing/GoogleAPIParsing-Prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/ankit/Desktop/Projects/GoogleAPIParsing
export LANG=en_US.US-ASCII
export 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-header -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/ankit/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 -Wconditional-uninitialized -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.1.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.1 -iquote /Users/ankit/Library/Developer/Xcode/DerivedData/GoogleAPIParsing-blyffdbdszklenaxwqqnwiriiqjr/Build/Intermediates/GoogleAPIParsing.build/Debug-iphonesimulator/GoogleAPIParsing.build/GoogleAPIParsing-generated-files.hmap -I/Users/ankit/Library/Developer/Xcode/DerivedData/GoogleAPIParsing-blyffdbdszklenaxwqqnwiriiqjr/Build/Intermediates/GoogleAPIParsing.build/Debug-iphonesimulator/GoogleAPIParsing.build/GoogleAPIParsing-own-target-headers.hmap -I/Users/ankit/Library/Developer/Xcode/DerivedData/GoogleAPIParsing-blyffdbdszklenaxwqqnwiriiqjr/Build/Intermediates/GoogleAPIParsing.build/Debug-iphonesimulator/GoogleAPIParsing.build/GoogleAPIParsing-all-target-headers.hmap -iquote /Users/ankit/Library/Developer/Xcode/DerivedData/GoogleAPIParsing-blyffdbdszklenaxwqqnwiriiqjr/Build/Intermediates/GoogleAPIParsing.build/Debug-iphonesimulator/GoogleAPIParsing.build/GoogleAPIParsing-project-headers.hmap -I/Users/ankit/Library/Developer/Xcode/DerivedData/GoogleAPIParsing-blyffdbdszklenaxwqqnwiriiqjr/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/ankit/Library/Developer/Xcode/DerivedData/GoogleAPIParsing-blyffdbdszklenaxwqqnwiriiqjr/Build/Intermediates/GoogleAPIParsing.build/Debug-iphonesimulator/GoogleAPIParsing.build/DerivedSources/i386 -I/Users/ankit/Library/Developer/Xcode/DerivedData/GoogleAPIParsing-blyffdbdszklenaxwqqnwiriiqjr/Build/Intermediates/GoogleAPIParsing.build/Debug-iphonesimulator/GoogleAPIParsing.build/DerivedSources -F/Users/ankit/Library/Developer/Xcode/DerivedData/GoogleAPIParsing-blyffdbdszklenaxwqqnwiriiqjr/Build/Products/Debug-iphonesimulator -F/Users/ankit/Documents/FacebookSDK --serialize-diagnostics /Users/ankit/Library/Developer/Xcode/DerivedData/GoogleAPIParsing-blyffdbdszklenaxwqqnwiriiqjr/Build/Intermediates/PrecompiledHeaders/GoogleAPIParsing-Prefix-gwcwubtrxmgndfbvpagazcbdlfnr/GoogleAPIParsing-Prefix.pch.dia -MMD -MT dependencies -MF /Users/ankit/Library/Developer/Xcode/DerivedData/GoogleAPIParsing-blyffdbdszklenaxwqqnwiriiqjr/Build/Intermediates/PrecompiledHeaders/GoogleAPIParsing-Prefix-gwcwubtrxmgndfbvpagazcbdlfnr/GoogleAPIParsing-Prefix.pch.d -c /Users/ankit/Desktop/Projects/GoogleAPIParsing/GoogleAPIParsing/GoogleAPIParsing-Prefix.pch -o /Users/ankit/Library/Developer/Xcode/DerivedData/GoogleAPIParsing-blyffdbdszklenaxwqqnwiriiqjr/Build/Intermediates/PrecompiledHeaders/GoogleAPIParsing-Prefix-gwcwubtrxmgndfbvpagazcbdlfnr/GoogleAPIParsing-Prefix.pch.pch
GoogleAPIParsing/GoogleAPIParsing-Prefix.pch'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
Please help.
Thanks in advance
I found my mistake,
i accidentally deleted my .pch and .plist files and when i added it manually xcode showed me this error , so i had to manually add those files in my project.
Probably in your project there are ‘release’ or ‘retain’ and I guess you are using ARC (Automatic Reference Counting) in your Xcode projects, but you haven't change your flags.
I also recommend you to check this link; http://blog.evanmulawski.com/?p=36

Clang failed with exit code 1 error in objective-c

what is this error.. I'm trying to converting a non-ARC project to arc project and error is showing Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
ProcessPCH /Users/amit/Library/Developer/Xcode/DerivedData/Corlocation-gfdftvxjfdzkejebtysirafavnmv/Build/Intermediates/PrecompiledHeaders/Corlocation-Prefix-fjwexhbcqsylinfenhkyculomcng/Corlocation-Prefix.pch.pth Corlocation/Corlocation-Prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd "/Users/amit/Desktop/My Apps/Corlocation"
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-header -arch i386 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-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 -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -fexceptions -fasm-blocks -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -mios-simulator-version-min=6.0 -iquote /Users/amit/Library/Developer/Xcode/DerivedData/Corlocation-gfdftvxjfdzkejebtysirafavnmv/Build/Intermediates/Corlocation.build/Debug-iphonesimulator/Corlocation.build/Corlocation-generated-files.hmap -I/Users/amit/Library/Developer/Xcode/DerivedData/Corlocation-gfdftvxjfdzkejebtysirafavnmv/Build/Intermediates/Corlocation.build/Debug-iphonesimulator/Corlocation.build/Corlocation-own-target-headers.hmap -I/Users/amit/Library/Developer/Xcode/DerivedData/Corlocation-gfdftvxjfdzkejebtysirafavnmv/Build/Intermediates/Corlocation.build/Debug-iphonesimulator/Corlocation.build/Corlocation-all-target-headers.hmap -iquote /Users/amit/Library/Developer/Xcode/DerivedData/Corlocation-gfdftvxjfdzkejebtysirafavnmv/Build/Intermediates/Corlocation.build/Debug-iphonesimulator/Corlocation.build/Corlocation-project-headers.hmap -I/Users/amit/Library/Developer/Xcode/DerivedData/Corlocation-gfdftvxjfdzkejebtysirafavnmv/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/amit/Library/Developer/Xcode/DerivedData/Corlocation-gfdftvxjfdzkejebtysirafavnmv/Build/Intermediates/Corlocation.build/Debug-iphonesimulator/Corlocation.build/DerivedSources/i386 -I/Users/amit/Library/Developer/Xcode/DerivedData/Corlocation-gfdftvxjfdzkejebtysirafavnmv/Build/Intermediates/Corlocation.build/Debug-iphonesimulator/Corlocation.build/DerivedSources -F/Users/amit/Library/Developer/Xcode/DerivedData/Corlocation-gfdftvxjfdzkejebtysirafavnmv/Build/Products/Debug-iphonesimulator fno-objc-arc --serialize-diagnostics /Users/amit/Library/Developer/Xcode/DerivedData/Corlocation-gfdftvxjfdzkejebtysirafavnmv/Build/Intermediates/PrecompiledHeaders/Corlocation-Prefix-fjwexhbcqsylinfenhkyculomcng/Corlocation-Prefix.pch.dia -c "/Users/amit/Desktop/My Apps/Corlocation/Corlocation/Corlocation-Prefix.pch" -o /Users/amit/Library/Developer/Xcode/DerivedData/Corlocation-gfdftvxjfdzkejebtysirafavnmv/Build/Intermediates/PrecompiledHeaders/Corlocation-Prefix-fjwexhbcqsylinfenhkyculomcng/Corlocation-Prefix.pch.pth -MMD -MT dependencies -MF /Users/amit/Library/Developer/Xcode/DerivedData/Corlocation-gfdftvxjfdzkejebtysirafavnmv/Build/Intermediates/PrecompiledHeaders/Corlocation-Prefix-fjwexhbcqsylinfenhkyculomcng/Corlocation-Prefix.pch.d
clang: error: no such file or directory: 'fno-objc-arc'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
you are use the fno-objc-arc that's a command line argument, you probably need to prefix it with a hyphen, such as with:
Replace fno-objc-arc to -fno-objc-arc
fno-objc-arc should be -fno-objc-arc and is used to turn off ARC for the file, so there is obviously a mistake in your Xcode project settings.
See the screenshot in this SO question for details of where this is set.

Coreplot Xcode 4.5 Linker Error

Can anyone help? I've searched high and wide for a solution on this one...
I have recently upgraded Xcode from 4.2 to 4.5, downloaded the latest Coreplot (1.0) and attempted to do the dependent project install and tried the static library using the Coreplot wiki notes but get the following linker error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Werror -Wmissing-field-initializers -Wmissing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wformat -Wmissing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -fexceptions -fasm-blocks -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -mios-simulator-version-min=6.0 -iquote /Users/carl_evs/Library/Developer/Xcode/DerivedData/Money_Monthly-eyszohglwcbclrfhrqobwkdwqdzo/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-generated-files.hmap -I/Users/carl_evs/Library/Developer/Xcode/DerivedData/Money_Monthly-eyszohglwcbclrfhrqobwkdwqdzo/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-own-target-headers.hmap -I/Users/carl_evs/Library/Developer/Xcode/DerivedData/Money_Monthly-eyszohglwcbclrfhrqobwkdwqdzo/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-all-target-headers.hmap -iquote /Users/carl_evs/Library/Developer/Xcode/DerivedData/Money_Monthly-eyszohglwcbclrfhrqobwkdwqdzo/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-project-headers.hmap -I/Users/carl_evs/Library/Developer/Xcode/DerivedData/Money_Monthly-eyszohglwcbclrfhrqobwkdwqdzo/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/carl_evs/Library/Developer/Xcode/DerivedData/Money_Monthly-eyszohglwcbclrfhrqobwkdwqdzo/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/DerivedSources/i386 -I/Users/carl_evs/Library/Developer/Xcode/DerivedData/Money_Monthly-eyszohglwcbclrfhrqobwkdwqdzo/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/DerivedSources -F/Users/carl_evs/Library/Developer/Xcode/DerivedData/Money_Monthly-eyszohglwcbclrfhrqobwkdwqdzo/Build/Products/Debug-iphonesimulator -lstdc++ -falign-loops=16 -MMD -MT dependencies -MF /Users/carl_evs/Library/Developer/Xcode/DerivedData/Money_Monthly-eyszohglwcbclrfhrqobwkdwqdzo/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTPlot.d --serialize-diagnostics /Users/carl_evs/Library/Developer/Xcode/DerivedData/Money_Monthly-eyszohglwcbclrfhrqobwkdwqdzo/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTPlot.dia -c /Users/carl_evs/Documents/CorePlot_1.0/Source/framework/Source/CPTPlot.m -o /Users/carl_evs/Library/Developer/Xcode/DerivedData/Money_Monthly-eyszohglwcbclrfhrqobwkdwqdzo/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTPlot.o
clang: error: -Z-reserved-lib-stdc++: 'linker' input unused when '-c' is present
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

All of a sudden: Core Plot in iOS: Apple LLVM compiler 4,1 Error

I don't know what happened; All of a sudden I started getting this error. I tried re-moving and re-adding Core Plot, but it didn't seem to change anything. Core plot was originally not giving me any errors, but now I'm getting the following:
clang: error: -Z-reserved-lib-stdc++: 'linker' input unused when '-c' is present
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
I've seen similar questions on stackoverflow but a) they didn't help me and b) This is a newer version of XCode (4.5.1), so maybe that's part of the problem?
Thanks for your help.
EDIT: In the meantime I switched to a static library install, which seemed to work. I don't really know the differences/advantages of one over the other, except maybe it's easier to update the dependent project install? (sorry for my noobnesss)
More detail:
CompileC /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTPlot.o Source/CPTPlot.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/username/Developer/appname/CorePlot_1.0/Source/framework
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 -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Werror -Wmissing-field-initializers -Wmissing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wformat -Wmissing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -fexceptions -fasm-blocks -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -mios-simulator-version-min=3.1.3 -iquote /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-generated-files.hmap -I/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-own-target-headers.hmap -I/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-all-target-headers.hmap -iquote /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-project-headers.hmap -I/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/DerivedSources/i386 -I/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/DerivedSources -F/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Products/Debug-iphonesimulator -lstdc++ -falign-loops=16 -MMD -MT dependencies -MF /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTPlot.d --serialize-diagnostics /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTPlot.dia -c /Users/username/Developer/appname/CorePlot_1.0/Source/framework/Source/CPTPlot.m -o /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTPlot.o
I just had this problem after upgrading my xcode version. I found that although xcode was installed, it was still installing some libraries in the background while I was getting this error, once those processes finished, the error went away.

Resources