Unable to build app that use cocoa pods - ios

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

Related

POD error when trying to use Webstorm for React Native iOS development

I am new to React Native and iOS App development. I come across the following error when I try to run an new reactive native project for iOS:
/usr/local/bin/node /usr/local/lib/node_modules/react-native-cli run-ios
error Could not find "Podfile.lock" at /Users/davep/WebstormProjects/untitled3/ios/Podfile.lock. Did you run "pod install" in iOS directory?
info Found Xcode project "untitled3.xcodeproj"
info Building (using "xcodebuild -project untitled3.xcodeproj -configuration Debug -scheme untitled3 -destination id=CAE67ED1-8877-47D6-826E-376DD2D45250")
................
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project untitled3.xcodeproj -configuration Debug -scheme untitled3 -destination id=CAE67ED1-8877-47D6-826E-376DD2D45250
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Using build description from disk
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the untitled3 editor. (in target 'untitled3' from project 'untitled3')
PhaseScriptExecution Start\ Packager /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/Script-FD10A7F022414F080027D42C.sh (in target 'untitled3' from project 'untitled3')
cd /Users/davep/WebstormProjects/untitled3/ios
/bin/sh -c /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/Script-FD10A7F022414F080027D42C.sh
Connection to localhost port 8081 [tcp/sunproxyadmin] succeeded!
CompileC /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/Objects-normal/x86_64/main.o /Users/davep/WebstormProjects/untitled3/ios/untitled3/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'untitled3' from project 'untitled3')
cd /Users/davep/WebstormProjects/untitled3/ios
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios9.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/davep/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/davep/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 -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 -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 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DFB_SONARKIT_ENABLED=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Index/DataStore -iquote /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/untitled3-generated-files.hmap -I/Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/untitled3-own-target-headers.hmap -I/Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/untitled3-all-target-headers.hmap -iquote /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/untitled3-project-headers.hmap -I/Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Products/Debug-iphonesimulator/include -I/Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/DerivedSources-normal/x86_64 -I/Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/DerivedSources/x86_64 -I/Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/DerivedSources -F/Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Products/Debug-iphonesimulator -MMD -MT dependencies -MF /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/Objects-normal/x86_64/main.d --serialize-diagnostics /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/Objects-normal/x86_64/main.dia -c /Users/davep/WebstormProjects/untitled3/ios/untitled3/main.m -o /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/Objects-normal/x86_64/main.o
In file included from /Users/davep/WebstormProjects/untitled3/ios/untitled3/main.m:3:
/Users/davep/WebstormProjects/untitled3/ios/untitled3/AppDelegate.h:1:9: fatal error: 'React/RCTBridgeDelegate.h' file not found
#import <React/RCTBridgeDelegate.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
CompileC /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/Objects-normal/x86_64/AppDelegate.o /Users/davep/WebstormProjects/untitled3/ios/untitled3/AppDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'untitled3' from project 'untitled3')
cd /Users/davep/WebstormProjects/untitled3/ios
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios9.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/davep/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/davep/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 -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 -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 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DFB_SONARKIT_ENABLED=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Index/DataStore -iquote /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/untitled3-generated-files.hmap -I/Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/untitled3-own-target-headers.hmap -I/Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/untitled3-all-target-headers.hmap -iquote /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/untitled3-project-headers.hmap -I/Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Products/Debug-iphonesimulator/include -I/Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/DerivedSources-normal/x86_64 -I/Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/DerivedSources/x86_64 -I/Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/DerivedSources -F/Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Products/Debug-iphonesimulator -MMD -MT dependencies -MF /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/Objects-normal/x86_64/AppDelegate.d --serialize-diagnostics /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/Objects-normal/x86_64/AppDelegate.dia -c /Users/davep/WebstormProjects/untitled3/ios/untitled3/AppDelegate.m -o /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/Objects-normal/x86_64/AppDelegate.o
In file included from /Users/davep/WebstormProjects/untitled3/ios/untitled3/AppDelegate.m:1:
/Users/davep/WebstormProjects/untitled3/ios/untitled3/AppDelegate.h:1:9: fatal error: 'React/RCTBridgeDelegate.h' file not found
#import <React/RCTBridgeDelegate.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/Objects-normal/x86_64/main.o /Users/davep/WebstormProjects/untitled3/ios/untitled3/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/davep/Library/Developer/Xcode/DerivedData/untitled3-adqqamxzcxmswnfnvithzulzjaop/Build/Intermediates.noindex/untitled3.build/Debug-iphonesimulator/untitled3.build/Objects-normal/x86_64/AppDelegate.o /Users/davep/WebstormProjects/untitled3/ios/untitled3/AppDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening untitled3.xcodeproj. Run CLI with --verbose flag for more details.
I already install the following:
* XCode
* React Native CLI
May I know what could be going wrong? It seems the Pod install could be a problem?
Many thanks for the help!
The project was created and run inside Webstorm. It seems the error will be gone after I run the project in the command line directly. During the process, RN will ask me to install cocopads.
Many thanks for all the comment!

Xcode won't compile for iPhone 6

I have an old project which compiles well on my iPhone 4, but when I try to compile for my iPhone 6 I encounter this starcan't specifiy -Q with -arch arm64
what does it mean? does any one have any idea?
here a shot of my project setting:
the second one is my project subModule meeting shot:
CompileC /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/Objects-normal/arm64/maxvid_decode_arm.o AVAnimator/maxvid_decode_arm.s normal arm64 assembler-with-cpp com.apple.compilers.llvm.clang.1_0.compiler
cd "/Users/hashem/Desktop/Xcode Projects/Gulestan"
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 assembler-with-cpp -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wmissing-prototypes -Wunreachable-code -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 -Wno-newline-eof -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=7.0 -iquote /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/iGolestan-generated-files.hmap -I/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/iGolestan-own-target-headers.hmap -I/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/iGolestan-all-target-headers.hmap -iquote /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/iGolestan-project-headers.hmap -iquote../OHAttributedLabel -I/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Products/Debug-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/DerivedSources/arm64 -I/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/DerivedSources -F/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Products/Debug-iphoneos -no-integrated-as -MMD -MT dependencies -MF /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/Objects-normal/arm64/maxvid_decode_arm.d --serialize-diagnostics /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/Objects-normal/arm64/maxvid_decode_arm.dia -c /Users/hashem/Desktop/Xcode\ Projects/Gulestan/AVAnimator/maxvid_decode_arm.s -o /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/Objects-normal/arm64/maxvid_decode_arm.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as: can't specifiy -Q with -arch arm64
clang: error: assembler command failed with exit code 1 (use -v to see invocation)
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
You are attempting to compile AVAnimator/maxvid_decode_arm.s which is 32 bit ARM asm code under the ARM64 built target. You will need to update the version of the AVAnimator library that you have embedded into your app to the github HEAD in order to compiler for ARM64.

Apple LLVM 6.0 Error Clang 254

Running Xcode 6.1 on Mavericks, is this an xcode issue? or something I did
Sorry, I know posting these errors must get annoying, I tried googling around but couldn't find a solution that works
This would happen whether I was running a unmodified template xcode file or something that I tried to code myself. :(
Thanks,
Joe
CompileC /Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/Objects-normal/x86_64/main.o pac/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/joe/Desktop/pac
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 x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/joe/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -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 -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.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=8.1 -iquote /Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/pac-generated-files.hmap -I/Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/pac-own-target-headers.hmap -I/Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/pac-all-target-headers.hmap -iquote /Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/pac-project-headers.hmap -I/Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/DerivedSources/x86_64 -I/Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/DerivedSources -F/Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Products/Debug-iphonesimulator -F/Users/joe/Desktop/pac/parse-library-1 -MMD -MT dependencies -MF /Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/Objects-normal/x86_64/main.d --serialize-diagnostics /Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/Objects-normal/x86_64/main.dia -c /Users/joe/Desktop/pac/pac/main.m -o /Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/Objects-normal/x86_64/main.o
Stack dump:
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -cc1 -triple x86_64-apple-ios8.1.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name main.m -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 241.9 -gdwarf-2 -coverage-file /Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/Objects-normal/x86_64/main.o -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0 -dependency-file /Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/Objects-normal/x86_64/main.d -MT dependencies -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -iquote /Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/pac-generated-files.hmap -iquote /Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/pac-project-headers.hmap -D DEBUG=1 -D NS_BLOCK_ASSERTIONS=1 -D OBJC_OLD_DISPATCH_PROTOTYPES=0 -I /Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/pac-own-target-headers.hmap -I /Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/pac-all-target-headers.hmap -I /Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Products/Debug-iphonesimulator/include -I /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I /Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/DerivedSources/x86_64 -I /Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/DerivedSources -F/Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Products/Debug-iphonesimulator -F/Users/joe/Desktop/pac/parse-library-1 -O0 -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -std=gnu99 -fdebug-compilation-dir /Users/joe/Desktop/pac -ferror-limit 19 -fmacro-backtrace-limit 0 -fmessage-length 0 -stack-protector 1 -mstackrealign -fblocks -fmodules -fmodules-cache-path=/Users/joe/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fobjc-runtime=ios-8.1.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/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/Objects-normal/x86_64/main.dia -o /Users/joe/Library/Developer/Xcode/DerivedData/pac-dmdcvwzinfweyzgefcqbhztzjxfl/Build/Intermediates/pac.build/Debug-iphonesimulator/pac.build/Objects-normal/x86_64/main.o -x objective-c /Users/joe/Desktop/pac/pac/main.m
1. parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module '/Users/joe/Desktop/pac/pac/main.m'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function '#main'
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 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
Target: x86_64-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/3r/jfx826nx1yvd_xxd03fxdk580000gn/T/main-df87ab.m
clang: note: diagnostic msg: /var/folders/3r/jfx826nx1yvd_xxd03fxdk580000gn/T/main-df87ab.cache
clang: note: diagnostic msg: /var/folders/3r/jfx826nx1yvd_xxd03fxdk580000gn/T/main-df87ab.sh
clang: note: diagnostic msg:
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 254
You can follow this example to solve this issue. It worked for me. You have to delete the derived data and the restart xCode. It always work with Apple LLVM 6.0 Error.

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.

i have trouble about build iOS project in terminal with xcodebuild

I have a iOS peoject. it run on my iPhone & iPad as well. Now I want build the project in terminal with xcodebuild. But i get errors, it likes that:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch armv7 -fmessage-length=0 -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wmissing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-conversion -Wno-sign-conversion -mthumb "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -miphoneos-version-min=3.2 -I/Users/zhangyangjing/Desktop/556/Tabster/build/Tabster.build/Release-iphoneos/Tabster.build/Tabster.hmap -I/Users/zhangyangjing/Desktop/556/Tabster/build/Release-iphoneos/include -I/Users/zhangyangjing/Desktop/556/Tabster/build/Tabster.build/Release-iphoneos/Tabster.build/DerivedSources/armv7 -I/Users/zhangyangjing/Desktop/556/Tabster/build/Tabster.build/Release-iphoneos/Tabster.build/DerivedSources -F/Users/zhangyangjing/Desktop/556/Tabster/build/Release-iphoneos --serialize-diagnostics /var/folders/34/1khlf2gx2t5bkm3llcs1mhmr0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Prefix-dnpnglnqyykokvgarilsbxpvuaap/Prefix.pch.dia -c /Users/zhangyangjing/Desktop/556/Tabster/Prefix.pch -o /var/folders/34/1khlf2gx2t5bkm3llcs1mhmr0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Prefix-dnpnglnqyykokvgarilsbxpvuaap/Prefix.pch.pth -MMD -MT dependencies -MF /var/folders/34/1khlf2gx2t5bkm3llcs1mhmr0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Prefix-dnpnglnqyykokvgarilsbxpvuaap/Prefix.pch.d
In file included from /Users/zhangyangjing/Desktop/556/Tabster/Prefix.pch:2:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.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/iPhoneOS5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:108:16: fatal error: 'CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h' file not found
#include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h>
** BUILD FAILED **
The following build commands failed:
ProcessPCH /var/folders/34/1khlf2gx2t5bkm3llcs1mhmr0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Prefix-dnpnglnqyykokvgarilsbxpvuaap/Prefix.pch.pth Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
I have tried demo project from Apple, they got errors as same. I am crazying, who can help me?
i resolve it.
just do:
cd /usr/bin
rm xcodebuild
ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild xcodebuild

Resources