How to find the dependency that links to stdlibc++? - ios

I'm currently working on an iOS project that are running properly on Xcode 9.4.1.
Since apple will force all of the submitted app to the App Store must be built with the iOS 12.1 SDK or later ( which are included in Xcode 10.1 or later), therefore, I plan to upgrade my current project so it can be used on Xcode 10.1.
However, I got this stdlibc++ headers not found error..
Showing All Messages
ProcessPCH++ /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/PrecompiledHeaders/SharedPrecompiledHeaders/5421139595203421822/TV_Prefix.pch.gch /Users/nm/Desktop/temp\ v2\ code/iphone/from\ bitbucket/v2-ios-iphone/src/TV_Prefix.pch normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target: TV_iPhone)
cd /Users/nm/Desktop/temp\ v2\ code/iphone/from\ bitbucket/v2-ios-iphone
/Applications/Xcode10.1/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++-header -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -gmodules -Wno-trigraphs -fpascal-strings -O0 -Werror -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-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 -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -isysroot /Applications/Xcode10.1/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -fasm-blocks -fstrict-aliasing -Wno-deprecated-declarations -Winvalid-offsetof -mios-simulator-version-min=6.0 -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -index-store-path /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Index/DataStore -iquote /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/Media\ Everywhere-generated-files.hmap -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/Media\ Everywhere-own-target-headers.hmap -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/Media\ Everywhere-all-target-headers.hmap -iquote /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/Media\ Everywhere-project-headers.hmap -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode10.1/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/libxml2 -I/Applications/Xcode10.1/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/libxml2/libxml -I/Users/nm/Desktop/temp\ v2\ code/iphone/from\ bitbucket/v2-ios-iphone/opensource/Curl -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/DerivedSources/i386 -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/DerivedSources -F/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Products/Debug-iphonesimulator -F/Users/nm/Desktop/temp\ v2\ code/iphone/from\ bitbucket/v2-ios-iphone -F/Users/nm/Desktop/temp\ v2\ code/iphone/from\ bitbucket/v2-ios-iphone -c /Users/nm/Desktop/temp\ v2\ code/iphone/from\ bitbucket/v2-ios-iphone/src/TV_Prefix.pch -MD -MT dependencies -MF /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/PrecompiledHeaders/SharedPrecompiledHeaders/5421139595203421822/TV_Prefix.pch.d -iquote /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/Media\ Everywhere-generated-files.hmap -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/Media\ Everywhere-own-target-headers.hmap -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/Media\ Everywhere-all-target-headers.hmap -iquote /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/Media\ Everywhere-project-headers.hmap -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode10.1/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/libxml2 -I/Applications/Xcode10.1/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/libxml2/libxml -I/Users/nm/Desktop/temp\ v2\ code/iphone/from\ bitbucket/v2-ios-iphone/opensource/Curl -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/DerivedSources/i386 -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/DerivedSources -o /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/PrecompiledHeaders/SharedPrecompiledHeaders/5421139595203421822/TV_Prefix.pch.gch --serialize-diagnostics /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/PrecompiledHeaders/SharedPrecompiledHeaders/5421139595203421822/TV_Prefix.pch.dia
error: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Werror,-Wstdlibcxx-not-found]
1 error generated.
I know that libstdc++ is not supported on Xcode 10 and I plan to do the necassary changes.
Since this project has not been developed initially by me and the people related to it has been out of reach, is there any way that I can do to find which file inside the project has dependency on the stdlibc++? Plus, my project doesn't used any cocoapods and fully developed on objective-c
Thank you for your assistance in advance. ^_^

It's compiling the precompiled header: /Users/nm/Desktop/temp v2 code/iphone/from bitbucket/v2-ios-iphone/src/TV_Prefix.pch
It's compiling it as a C++ header. I'm not sure if that's because it's marked as a C++ file in the file's settings or if it does that whenever there's any C++ source file in the project.

Related

Brand new React Native CLI (2.0.1) project fails on build (iOS)

I'm trying to build a literal brand-new just-initialized project with React Native CLI (latest version) and I get the below avalanche of error messages and the build fails. It's such a massive clump of error messages that my Terminal can't even show the whole thing. Just initialized with npx react-native init, didn't touch it otherwise. Older projects that I built previously build just fine but any new projects I try to build give the same result. I've tried to initialize four new projects and gotten the same result. MacOS Catalina 10.15.7, XCode 11.7, React 16.13.1, React Native 0.63.4, React Native CLI 2.0.1.
Not sure how to produce a minimum reproducible result as this literally is happening with a brand new project.
Have tried restarting my machine, creating five separate brand new RN CLI projects, looking in the XCode derived data folder, seeing if there are any logs.
This started after I tried to fix another error by deleting project files in the DerivedData folder, that's the only thing I can think of that might have caused this.
Here's the first part of the error messages, I can't post the whole thing because of the character limit. The rest of it is in this Google Doc: https://docs.google.com/document/d/1kQ7Wg8EK26ivOqEdz4XIM2dm5Xe33zCvU6kQ7vWyHRw/edit?usp=sharing
noindex/Pods.build/Debug-iphonesimulator/Flipper-DoubleConversion.build/Flipper-DoubleConversion-project-headers.hmap -I/Users/owenwexler/Library/Developer/Xcode/DerivedData/WillItBuild-blcmrlwkxskfhxcgewqpvkcvjpxh/Build/Products/Debug-iphonesimulator/Flipper-DoubleConversion/include -I/Users/owenwexler/code/tuts/WillItBuild/ios/Pods/Headers/Private -I/Users/owenwexler/code/tuts/WillItBuild/ios/Pods/Headers/Private/Flipper-DoubleConversion -I/Users/owenwexler/code/tuts/WillItBuild/ios/Pods/Headers/Public -I/Users/owenwexler/code/tuts/WillItBuild/ios/Pods/Headers/Public/Flipper-DoubleConversion -I/Users/owenwexler/Library/Developer/Xcode/DerivedData/WillItBuild-blcmrlwkxskfhxcgewqpvkcvjpxh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-DoubleConversion.build/DerivedSources-normal/x86_64 -I/Users/owenwexler/Library/Developer/Xcode/DerivedData/WillItBuild-blcmrlwkxskfhxcgewqpvkcvjpxh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-DoubleConversion.build/DerivedSources/x86_64 -I/Users/owenwexler/Library/Developer/Xcode/DerivedData/WillItBuild-blcmrlwkxskfhxcgewqpvkcvjpxh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-DoubleConversion.build/DerivedSources -F/Users/owenwexler/Library/Developer/Xcode/DerivedData/WillItBuild-blcmrlwkxskfhxcgewqpvkcvjpxh/Build/Products/Debug-iphonesimulator/Flipper-DoubleConversion -Wno-unreachable-code -include /Users/owenwexler/code/tuts/WillItBuild/ios/Pods/Target\ Support\ Files/Flipper-DoubleConversion/Flipper-DoubleConversion-prefix.pch -MMD -MT dependencies -MF /Users/owenwexler/Library/Developer/Xcode/DerivedData/WillItBuild-blcmrlwkxskfhxcgewqpvkcvjpxh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-DoubleConversion.build/Objects-normal/x86_64/bignum.d --serialize-diagnostics /Users/owenwexler/Library/Developer/Xcode/DerivedData/WillItBuild-blcmrlwkxskfhxcgewqpvkcvjpxh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-DoubleConversion.build/Objects-normal/x86_64/bignum.dia -c /Users/owenwexler/code/tuts/WillItBuild/ios/Pods/Flipper-DoubleConversion/double-conversion/bignum.cc -o /Users/owenwexler/Library/Developer/Xcode/DerivedData/WillItBuild-blcmrlwkxskfhxcgewqpvkcvjpxh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-DoubleConversion.build/Objects-normal/x86_64/bignum.o
CompileC /Users/owenwexler/Library/Developer/Xcode/DerivedData/WillItBuild-blcmrlwkxskfhxcgewqpvkcvjpxh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-DoubleConversion.build/Objects-normal/x86_64/bignum-dtoa.o /Users/owenwexler/code/tuts/WillItBuild/ios/Pods/Flipper-DoubleConversion/double-conversion/bignum-dtoa.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'Flipper-DoubleConversion' from project 'Pods')
cd /Users/owenwexler/code/tuts/WillItBuild/ios/Pods
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-ios8.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu++14 -stdlib=libc++ -fmodules -fmodules-cache-path=/Users/owenwexler/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/owenwexler/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/owenwexler/Library/Developer/Xcode/DerivedData/WillItBuild-blcmrlwkxskfhxcgewqpvkcvjpxh/Index/DataStore -iquote /Users/owenwexler/Library/Developer/Xcode/DerivedData/WillItBuild-blcmrlwkxskfhxcgewqpvkcvjpxh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-DoubleConversion.build/Flipper-DoubleConversion-generated-files.hmap -I/Users/owenwexler/Library/Developer/Xcode/DerivedData/WillItBuild-blcmrlwkxskfhxcgewqpvkcvjpxh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-DoubleConversion.build/Flipper-DoubleConversion-own-target-headers.hmap -I/Users/owenwexler/Library/Developer/Xcode/DerivedData/WillItBuild-blcmrlwkxskfhxcgewqpvkcvjpxh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-DoubleConversion.build/Flipper-DoubleConversion-all-non-framework-target-headers.hmap -ivfsoverlay /Users/owenwexler/Library/Developer/Xcode/DerivedData/WillItBuild-blcmrlwkxskfhxcgewqpvkcvjpxh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-DoubleConversion.build/all-product-headers.yaml -iquote /Users/owenwexler/Library/Developer/Xcode/DerivedData/WillItBuild-blcmrlwkxskfhxcgewqpvkcvjpxh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-DoubleConversion.build/Flipper-DoubleConversion-project-headers.hmap

Ld linker fails with absolute addressing error even though PIE is enabled

For the past few days I've dealing with an issue I couldn't get my head around. I'm trying to build an old (6 years!) iOS game project of mine and the linker fails with the following error:
Absolute addressing not allowed in arm64 code but used in '-[Snip snap]' referencing '_NSFileModificationDate' for architecture arm64
The referred class does call NSDictionary -objectForKey: with NSFileModificationDate as parameter. It's an Objective-C++ source file since it does include C++ code.
So as I far as I understand, the linker considers that I compiled my sources to be position-dependent and fails, as intended with arm64. But why is that?
What I've tried or checked so far:
Build settings:
Linking > Generate Position-Dependent Executable: NO
Linking > Other Linker Flags: -all_load -ObjC
Apple Clang - Code Generation > Generate Position-Dependent Code: NO
do clean and delete DerivedData folder before rebuilding after any changes
removed all third-party both static and dynamic libraries. I'm just using a few Apple frameworks
removed any source files which were including asm code
looked for any unknown-to-me preprocessor directives
recreated the whole project from scratch and copying my source files in it, to make sure my older project has broken settings
any .m or .mm source files which includes a constant just like that NSFileModificationDate will fail at linking
otool -hv gives:
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
MH_MAGIC_64 ARM64 ALL 0x00 OBJECT 4 3000 SUBSECTIONS_VIA_SYMBOLS
Here is the compilation command for the faulty file (sorry, that's verbose):
CompileC SNIP/Build/Intermediates.noindex/SNIP.build/Debug-iphoneos/SNIP.build/Objects-normal/arm64/Snip.o SNIPDesktop/SNIP/SNIP/Classes/App/Snip.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target: SNIP)
cd SNIPDesktop/SNIP/SNIP
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu++14 -stdlib=libc++ -fmodules -gmodules -fmodules-cache-path=SNIPLibrary/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=SNIPLibrary/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-c++11-extensions -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -miphoneos-version-min=12.0 -g -fvisibility-inlines-hidden -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -fembed-bitcode-marker -index-store-path SNIP/Index/DataStore -iquote SNIP/Build/Intermediates.noindex/SNIP.build/Debug-iphoneos/SNIP.build/SNIP-generated-files.hmap -ISNIP/Build/Intermediates.noindex/SNIP.build/Debug-iphoneos/SNIP.build/SNIP-own-target-headers.hmap -ISNIP/Build/Intermediates.noindex/SNIP.build/Debug-iphoneos/SNIP.build/SNIP-all-target-headers.hmap -iquote SNIP/Build/Intermediates.noindex/SNIP.build/Debug-iphoneos/SNIP.build/SNIP-project-headers.hmap -ISNIP/Build/Products/Debug-iphoneos/include -ISNIPDesktop/SNIP/SNIP/External -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/usr/include/libxml2 -ISNIP/Build/Intermediates.noindex/SNIP.build/Debug-iphoneos/SNIP.build/DerivedSources/arm64 -ISNIP/Build/Intermediates.noindex/SNIP.build/Debug-iphoneos/SNIP.build/DerivedSources -FSNIP/Build/Products/Debug-iphoneos -include SNIP/Build/Intermediates.noindex/PrecompiledHeaders/SharedPrecompiledHeaders/12134743132148408221/SNIP_prefix.pch -MMD -MT dependencies -MF SNIP/Build/Intermediates.noindex/SNIP.build/Debug-iphoneos/SNIP.build/Objects-normal/arm64/Snip.d --serialize-diagnostics SNIP/Build/Intermediates.noindex/SNIP.build/Debug-iphoneos/SNIP.build/Objects-normal/arm64/Snip.dia -c SNIPDesktop/SNIP/SNIP/Classes/App/Snip.mm -o SNIP/Build/Intermediates.noindex/SNIP.build/Debug-iphoneos/SNIP.build/Objects-normal/arm64/Snip.o
What am I missing? What other clues should I look for? Is there any warning messages I should check?
Thanks for your much-appreciated help!

XCode clang failed with exit code 254

Im Trying to build/run a iOS app on the iPhone 6.1 Simulator, however im getting this error.
Ive looked around and tried evertything ive found but nothing has helped.
This will build on other computers, but not this one.
Im completley new to iOS development so I dont know where to start.
Any help is apreciated, here is the error message:
CompileC /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o CorsageCreations/AppDelegate.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd "/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations"
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=gnu99 -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-constant-conversion -Wno-int-conversion -Wno-enum-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=5.0 -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-generated-files.hmap -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-own-target-headers.hmap -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-all-target-headers.hmap -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-project-headers.hmap -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator/include -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources/i386 -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources -F/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator "-F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../../../../../../Desktop/FbShare" "-F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../.." -F/Users/GuestUser/Desktop -include /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/PrecompiledHeaders/CorsageCreations-Prefix-fjwwmvkmbxepoldfyuusggxlzkzu/CorsageCreations-Prefix.pch -MMD -MT dependencies -MF /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.d --serialize-diagnostics /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.dia -c "/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/CorsageCreations/AppDelegate.m" -o /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o
0 clang 0x0000000100c57bb2 main + 12932498
Stack dump:
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -cc1 -triple i386-apple-ios5.0.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name AppDelegate.m -pic-level 2 -mdisable-fp-elim -masm-verbose -target-cpu yonah -target-linker-version 136 -g -coverage-file /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/4.2 -dependency-file /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.d -MT dependencies -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-generated-files.hmap -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-project-headers.hmap -include-pch /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/PrecompiledHeaders/CorsageCreations-Prefix-fjwwmvkmbxepoldfyuusggxlzkzu/CorsageCreations-Prefix.pch.pth -D DEBUG=1 -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-own-target-headers.hmap -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-all-target-headers.hmap -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator/include -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources/i386 -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources -F/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator -F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../../../../../../Desktop/FbShare -F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../.. -F/Users/GuestUser/Desktop -fmodule-cache-path /var/folders/_z/1x7mbrnx6f310pngnn97l5_00000gn/T/clang-module-cache -O0 -Wno-trigraphs -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-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -std=gnu99 -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=ios-5.0.0 -fobjc-default-synthesize-properties -fobjc-exceptions -fexceptions -fpascal-strings -fdiagnostics-show-option -fasm-blocks -serialize-diagnostic-file /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.dia -o /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o -x objective-c /Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/CorsageCreations/AppDelegate.m
1. /Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/CorsageCreations/ArrayObject.h:46:33: current parser token ':'
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-darwin12.3.0
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
I've experienced the same issue. It turned out that the host's folders shared by VMWare were read-only (even though that the read-only attribute from VM settings was unchecked).
Have you tried running sample xcode projects or copying code you're referencing to the VM?
I ended up sharing my folders using regular file sharing built in Windows 8.
I got the same error. I was running my Example project keeping it in VMWare Shared Folder's sub folder. And that was the reason, which made the above issue.
I copied my example project which I wanted to compile and Run (or even build which gave the above error) and pasted it into the Mac OS X(Mavericks) Desktop which was running on the VMWare Workstation 9.0. Then tried running it and it worked!
Hope this answer would be helpful to someone else out there!
Good Luck!!!
You made clang (the compiler) segfault (Segmentation fault: 11). Nothing you can do about it (unless you want to patch clang), you could however investigate the issue by passing the -v option when compiling.
I'm not absolutely sure, but I would say it is because your are developing inside a virtual machine. As far as I know OS X is only supported as a guest OS in VMWare Fusion 5+, and even then it is rather unstable.
I had this same problem with OS X, not iOS, so it seems not platform dependent.
Specifically, the compiler did not create the .o file and did not report any syntax errors.
The problem was caused by a property with a void type:
#property(readonly) void reset;
Removing the property fixed the problem.
This creates a similar problem, and shows a possible cause. Try putting this into a .m file and compiling it:
typedef struct{
int workAroundAsStructCannotBeOtherwiseEmpty;
float points [];
} arrayOfFloats;
#property arrayOfFloats someArrayOfFloats;
Interestingly, won't compile without the "workaround" line. If you change it to float points [10] it compiles fine.

Using HP Fortify and Xcode

I'm having this issue... after successfuly building an iOS 6.0 (Xcode 4.5) project separately using xcodebuild, the sourceanalyzer first reports missing .nst files for couple classes including stdarg.h and similar. Seems like sourceanalyzer cannot see the iPhone SDK's Header Search Paths. However Fortify seems so rare, that I haven't spotted any answer yet, especially regards to compatibility with various Xcode versions, etc. Anyone?
$ sourceanalyzer -b Forty xcodebuild -configuration Debug -sdk iphoneos6.1
Output:
Build settings from command line:
SDKROOT = iphoneos6.1
=== BUILD NATIVE TARGET fortifyTest OF PROJECT fortifyTest WITH CONFIGURATION Debug ===
Check dependencies
ProcessPCH /var/folders/yp/2l8w2hpd08199zstwqnxnvs80000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/fortifyTest-Prefix-gfjvmaafdrnknjehmxvutbaqdpny/fortifyTest-Prefix.pch.pth fortifyTest/fortifyTest-Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/sychram/Repositories/fortifyTest
setenv LANG en_US.US-ASCII
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Applications/HP_Fortify/HP_Fortify_SCA_and_Apps_3.70/bin"
/Users/sychram/.fortify/sca5.14/build/Forty/build717537620538182813/clang -x objective-c-header -arch armv7 -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 -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-constant-conversion -Wno-int-conversion -Wno-enum-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/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=6.0 -iquote /Users/sychram/Repositories/fortifyTest/build/fortifyTest.build/Debug-iphoneos/fortifyTest.build/fortifyTest-generated-files.hmap -I/Users/sychram/Repositories/fortifyTest/build/fortifyTest.build/Debug-iphoneos/fortifyTest.build/fortifyTest-own-target-headers.hmap -I/Users/sychram/Repositories/fortifyTest/build/fortifyTest.build/Debug-iphoneos/fortifyTest.build/fortifyTest-all-target-headers.hmap -iquote /Users/sychram/Repositories/fortifyTest/build/fortifyTest.build/Debug-iphoneos/fortifyTest.build/fortifyTest-project-headers.hmap -I/Users/sychram/Repositories/fortifyTest/build/Debug-iphoneos/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/sychram/Repositories/fortifyTest/build/fortifyTest.build/Debug-iphoneos/fortifyTest.build/DerivedSources/armv7 -I/Users/sychram/Repositories/fortifyTest/build/fortifyTest.build/Debug-iphoneos/fortifyTest.build/DerivedSources -F/Users/sychram/Repositories/fortifyTest/build/Debug-iphoneos --serialize-diagnostics /var/folders/yp/2l8w2hpd08199zstwqnxnvs80000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/fortifyTest-Prefix-gfjvmaafdrnknjehmxvutbaqdpny/fortifyTest-Prefix.pch.dia -c /Users/sychram/Repositories/fortifyTest/fortifyTest/fortifyTest-Prefix.pch -o /var/folders/yp/2l8w2hpd08199zstwqnxnvs80000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/fortifyTest-Prefix-gfjvmaafdrnknjehmxvutbaqdpny/fortifyTest-Prefix.pch.pth -MMD -MT dependencies -MF /var/folders/yp/2l8w2hpd08199zstwqnxnvs80000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/fortifyTest-Prefix-gfjvmaafdrnknjehmxvutbaqdpny/fortifyTest-Prefix.pch.d
[error]: Translator execution failed. Please consult the Troubleshooting section of the User Manual.
Translator returned status 1:
In file included from /Users/sychram/Repositories/fortifyTest/fortifyTest/fortifyTest-Prefix.pch:12:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/sys/types.h:78:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/machine/types.h:35:10: fatal error: 'i386/types.h' file not found
#include "i386/types.h"
^
1 error generated.
AFAIK only xcode versions 4.1, 4.2, 4.2.1, 4.3 are supported by fortify in the latest release 3.7.
Currently there is support for xcode 4.6 with SCA version 4.02. But I am still waiting for xcode 5.x to support by fortify, that I will be able to scan apps based on iOS7. since february apps submitted to the App Store must be built with the latest version of Xcode 5 and must be optimized for iOS 7.

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