XCode clang failed with exit code 254 - ios

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.

Related

building llvm 3.8 + clang-tools-extra 3.8 with xcodebuild

I'm trying to build and run llvm 3.8 together with the clang and clang-tools-extra.
The steps I followed are the ones on LLVM with the difference that I'm using this git mirror to check what I need.
So, shortly, I have:
LLVM 3.8
Clang 3.8 in llvm/tools
Clang-tools-extra 3.8 in llvm/tools
I can execute:
cmake -G Xcode ../llvm to generate the build files in my 'build' folder, but when I start building llvm with
xcodebuild the build fails because in /Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
"clang/Basic/Diagnostic.h"
"clang/Basic/SourceManager.h"
"clang/Tooling/Refactoring.h"
cannot be found
The building phase stops at
=== BUILD TARGET clangTidyCERTModule OF PROJECT LLVM WITH THE DEFAULT CONFIGURATION (Debug) ===
CompileC /Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/Objects-normal/x86_64/CERTTidyModule.o tools/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/carlodidomenico/Thesis/git/LLVM/llvm
export LANG=en_US.US-ASCII
/Applications/Xcode7.3/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=80 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wnon-virtual-dtor -Woverloaded-virtual -Wno-exit-time-destructors -Wmissing-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 -Wsign-compare -Wno-shorten-64-to-32 -Wnewline-eof -Wno-c++11-extensions -DCMAKE_INTDIR=\"Debug\" -DGTEST_HAS_RTTI=0 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -isysroot /Applications/Xcode7.3/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.11 -g -Wno-sign-conversion -I/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/Debug/lib/include -I/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert -I/Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/cert -I/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/include -I/Users/carlodidomenico/Thesis/git/LLVM/llvm/include -I/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/DerivedSources/x86_64 -I/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/Debug/lib -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -std=c++11 -fno-exceptions -fno-rtti -MMD -MT dependencies -MF /Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/Objects-normal/x86_64/CERTTidyModule.d --serialize-diagnostics /Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/Objects-normal/x86_64/CERTTidyModule.dia -c /Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp -o /Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/Objects-normal/x86_64/CERTTidyModule.o
In file included from /Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp:10:
In file included from /Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/cert/../ClangTidy.h:13:
/Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/cert/../ClangTidyDiagnosticConsumer.h:14:10: fatal error:
'clang/Basic/Diagnostic.h' file not found
#include "clang/Basic/Diagnostic.h"
Am I doing something wrong or what. It seems such a straightforward sequences of steps to be followed, but something is going wrong.
Initially I thought the problem was with just the "clang/Basic/Diagnostic.h" so I've opened the "LLVM.xcodeproj" with Xcode itself and noticed that "clang/Basic/SourceManager.h" file is not found and "clang/Tooling/Refactoring.h" too.
It seems like all the #include "clan/*" are giving problems
In order to use clang-tools-extra you'd also need to have clang sources. It seems that you prepared your combined source tree improperly. Please consider following the instructions at http://clang.llvm.org/get_started.html

Unable to build app that use cocoa pods

I recently reinstalled my Mac OS X Maverick distro and setted up my development environment. I was trying to follow the following tutorial to learn more about cocoa pods
and I never could get the build to run successfully.
The tutorial is from this source: http://www.raywenderlich.com/64546/introduction-to-cocoapods-2
To resume, I've followed the next steps on terminal app:
1- run: sudo gem update --system (OK)
2- run: sudo gem install cocoapods (OK)
3- run: pod setup (OK - terminal returned this "Setting up CocoaPods master repo
Setup completed (read-only access)")
4- on the app path run: pod init (created Podfile)
5- run: open -a Xcode Podfile (modified iOS version OK and added pod 'AFNetworking', '2.2.1' between the "target 'Showtracker' do)
6- run: pod install (everything worked fine and the workspace and all files were created correctly)
After that I've opened the workspace file from finder and the workspace in Xcode showed exactly as it should with the 2 project files
When I've tried to build the app I've got the following error as the build result:
CompileC
/Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Objects-normal/i386/AFHTTPRequestOperation.o
AFNetworking/AFNetworking/AFHTTPRequestOperation.m normal i386
objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/mtopp/Documents/Workspace/ShowTracker/Pods
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 -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fmodules -fmodules-cache-path=/Users/mtopp/Library/Developer/Xcode/DerivedData/ModuleCache
-Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -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 -DCOCOAPODS=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.0 -iquote /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Pods-ShowTracker-AFNetworking-generated-files.hmap -I/Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Pods-ShowTracker-AFNetworking-own-target-headers.hmap
-I/Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Pods-ShowTracker-AFNetworking-all-target-headers.hmap
-iquote /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Pods-ShowTracker-AFNetworking-project-headers.hmap -I/Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Products/Debug-iphonesimulator/include
-I/Users/mtopp/Documents/Workspace/ShowTracker/Pods/BuildHeaders -I/Users/mtopp/Documents/Workspace/ShowTracker/Pods/BuildHeaders/AFNetworking
-I/Users/mtopp/Documents/Workspace/ShowTracker/Pods/Headers -I/Users/mtopp/Documents/Workspace/ShowTracker/Pods/Headers/AFNetworking
-I/Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/DerivedSources/i386
-I/Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/DerivedSources
-F/Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Products/Debug-iphonesimulator
-fobjc-arc -w -Xanalyzer -analyzer-disable-checker -include /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/PrecompiledHeaders/Pods-ShowTracker-AFNetworking-prefix-aypnknzjycfqnmhhpckrwqzjddtp/Pods-ShowTracker-AFNetworking-prefix.pch -MMD -MT dependencies -MF /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Objects-normal/i386/AFHTTPRequestOperation.d
--serialize-diagnostics /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Objects-normal/i386/AFHTTPRequestOperation.dia
-c /Users/mtopp/Documents/Workspace/ShowTracker/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperation.m
-o /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Objects-normal/i386/AFHTTPRequestOperation.o
Stack dump:
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-cc1 -triple i386-apple-ios7.0.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name AFHTTPRequestOperation.m -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -target-cpu yonah -target-linker-version 236.3 -gdwarf-2 -coverage-file /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Objects-normal/i386/AFHTTPRequestOperation.o
-resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1
-dependency-file /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Objects-normal/i386/AFHTTPRequestOperation.d
-MT dependencies -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk
-iquote /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Pods-ShowTracker-AFNetworking-generated-files.hmap -iquote /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Pods-ShowTracker-AFNetworking-project-headers.hmap -include-pch /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/PrecompiledHeaders/Pods-ShowTracker-AFNetworking-prefix-aypnknzjycfqnmhhpckrwqzjddtp/Pods-ShowTracker-AFNetworking-prefix.pch.pch
-D DEBUG=1 -D COCOAPODS=1 -I /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Pods-ShowTracker-AFNetworking-own-target-headers.hmap
-I /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Pods-ShowTracker-AFNetworking-all-target-headers.hmap
-I /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Products/Debug-iphonesimulator/include
-I /Users/mtopp/Documents/Workspace/ShowTracker/Pods/BuildHeaders -I /Users/mtopp/Documents/Workspace/ShowTracker/Pods/BuildHeaders/AFNetworking
-I /Users/mtopp/Documents/Workspace/ShowTracker/Pods/Headers -I /Users/mtopp/Documents/Workspace/ShowTracker/Pods/Headers/AFNetworking
-I /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/DerivedSources/i386
-I /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/DerivedSources
-F/Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Products/Debug-iphonesimulator
-O0 -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -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 -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -w -std=gnu99 -fdebug-compilation-dir /Users/mtopp/Documents/Workspace/ShowTracker/Pods -ferror-limit 19
-fmacro-backtrace-limit 0 -fmessage-length 0 -stack-protector 1 -mstackrealign -fblocks -fmodules -fmodules-cache-path=/Users/mtopp/Library/Developer/Xcode/DerivedData/ModuleCache
-fobjc-runtime=ios-7.0.0 -fencode-extended-block-signature -fobjc-arc -fobjc-exceptions -fexceptions -fpascal-strings -fdiagnostics-show-option -fdiagnostics-show-note-include-stack -fasm-blocks -vectorize-slp -serialize-diagnostic-file /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Objects-normal/i386/AFHTTPRequestOperation.dia
-o /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Objects-normal/i386/AFHTTPRequestOperation.o
-x objective-c /Users/mtopp/Documents/Workspace/ShowTracker/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperation.m
parser at end of file
Code generation
Running pass 'Function Pass Manager' on module '/Users/mtopp/Documents/Workspace/ShowTracker/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperation.m'.
Running pass 'X86 DAG->DAG Instruction Selection' on function '#"\01-[AFHTTPRequestOperation responseObject]"' 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 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target:
i386-apple-darwin13.0.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:
note: diagnostic msg:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed
source(s) and associated run script(s) are located at: clang: note:
diagnostic msg:
/var/folders/z3/wmz14g7527l40snggf1b5qb40000gn/T/AFHTTPRequestOperation-4de2a1.m
clang: note: diagnostic msg:
/var/folders/z3/wmz14g7527l40snggf1b5qb40000gn/T/AFHTTPRequestOperation-4de2a1.sh
clang: note: diagnostic msg:
**************** Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
failed with exit code 254
I can't find the solution and the error is so general that I've read a lot of different problems.
I will appreciate any help or guidance you can provide

clang error unknown argument '-fno-obj-arc' AFNetworking Xcode 5.1 [duplicate]

This question already has answers here:
xcode LLVM 5.1 clang error
(5 answers)
Closed 8 years ago.
So I tried to run my app on iPhone 7, and ASIHttp didn't work. After some search I saw that people are migrating to AFNetworking, so I decided to do the same. Here's what I did:
Updated Xcode to version 5.1
Followed the instructions here
(setup cocoapods, installed afnetworking, changed project)
and tried to run. The first build failed with this message:
clang: error: unknown argument: '-fno-obj-arc' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
The only 2 reports I found about this are here and here
and they tell me to add some flag while doing the pod download:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
Did that and tried again, to no avail. Now I can't even go back to the other project. Has anyone dealt with this problem so far? The option is in the command line, but I can't find anywhere to remove it. I don't think I should anyway.
Here's the command line, you can see the argument right after AFNetworking:
ProcessPCH /Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Intermediates/PrecompiledHeaders/SPCMobile-Prefix-bbhdqojfrkhfytgpvixlnglajmxy/SPCMobile-Prefix.pch.pch SPCMobile/SPCMobile-Prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/cesarc/Desktop/projetos/SPCMobile
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 -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -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 -Wno-bool-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 -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=5.1 -I/Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Intermediates/SPCMobile.build/Release-iphonesimulator/SPCMobile.build/SPCMobile.hmap -I/Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Products/Release-iphonesimulator/include -I/Users/cesarc/Desktop/projetos/SPCMobile/Pods/Headers -I/Users/cesarc/Desktop/projetos/SPCMobile/Pods/Headers/AFNetworking -I/Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Intermediates/SPCMobile.build/Release-iphonesimulator/SPCMobile.build/DerivedSources/i386 -I/Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Intermediates/SPCMobile.build/Release-iphonesimulator/SPCMobile.build/DerivedSources -F/Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Products/Release-iphonesimulator -DNS_BLOCK_ASSERTIONS=1 -isystem /Users/cesarc/Desktop/projetos/SPCMobile/Pods/Headers -isystem /Users/cesarc/Desktop/projetos/SPCMobile/Pods/Headers/AFNetworking -fno-obj-arc --serialize-diagnostics /Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Intermediates/PrecompiledHeaders/SPCMobile-Prefix-bbhdqojfrkhfytgpvixlnglajmxy/SPCMobile-Prefix.pch.dia -MMD -MT dependencies -MF /Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Intermediates/PrecompiledHeaders/SPCMobile-Prefix-bbhdqojfrkhfytgpvixlnglajmxy/SPCMobile-Prefix.pch.d -c /Users/cesarc/Desktop/projetos/SPCMobile/SPCMobile/SPCMobile-Prefix.pch -o /Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Intermediates/PrecompiledHeaders/SPCMobile-Prefix-bbhdqojfrkhfytgpvixlnglajmxy/SPCMobile-Prefix.pch.pch
Check the Build Phases section for the Compile Sources, you should have the No Arc flag (-fno-objc-arc) there, just make sure the spelling is correct.

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