Using HP Fortify and Xcode - ios

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.

Related

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

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

Unrecognized module map file Release-iphonesimulator/YogaKit/YogaKit.modulemap' not found

I have created a new react-native project and I am trying to build the iOS code but it is failing with below error:
fatal error: module map file
'/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Products/Release-iphonesimulator/YogaKit/YogaKit.modulemap' not found
react-native versions:
react-native-cli: 2.0.1
react-native: 0.62.2
stack trace from Xcode:
CompileC /Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/Objects-normal/x86_64/thoughtrail_vers.o /Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/DerivedSources/thoughtrail_vers.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'thoughtrail' from project 'thoughtrail')
cd /Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -target x86_64-apple-ios9.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fmodules -gmodules -fmodules-cache-path=/Users/ritz/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/ritz/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 -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -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 -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -iquote /Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/thoughtrail-generated-files.hmap -I/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/thoughtrail-own-target-headers.hmap -I/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/thoughtrail-all-target-headers.hmap -iquote /Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/thoughtrail-project-headers.hmap -I/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Products/Release-iphonesimulator/include -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/CocoaAsyncSocket -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/CocoaLibEvent -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/DoubleConversion -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/FBLazyVector -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/FBReactNativeSpec -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/Flipper -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/Flipper-DoubleConversion -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/Flipper-Folly -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/Flipper-Glog -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/Flipper-PeerTalk -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/Flipper-RSocket -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/FlipperKit -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/OpenSSL-Universal -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/RCTRequired -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/RCTTypeSafety -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/React-Core -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/React-RCTText -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/React-cxxreact -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/React-jsi -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/React-jsiexecutor -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/React-jsinspector -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/ReactCommon -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/Yoga -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/YogaKit -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/glog -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/react-native-webview -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Private/React-Core -I/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/DerivedSources-normal/x86_64 -I/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/DerivedSources/x86_64 -I/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/DerivedSources -F/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Products/Release-iphonesimulator -fmodule-map-file=/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Products/Release-iphonesimulator/YogaKit/YogaKit.modulemap -fmodule-map-file=/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/yoga/Yoga.modulemap -MMD -MT dependencies -MF /Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/Objects-normal/x86_64/thoughtrail_vers.d --serialize-diagnostics /Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/Objects-normal/x86_64/thoughtrail_vers.dia -c /Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/DerivedSources/thoughtrail_vers.c -o /Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/Objects-normal/x86_64/thoughtrail_vers.o
Kindly advise.
Found the problems:
I opened a xcproject file instead of xcworkspace. Since I am using react-native which in turn uses COCOA, I am required to open the xcworkspace.
Reason for the above error was the POD Target Usable files were not available in the runtime project build directory generated.
So I Copy target support files from PODS Directory to dynamic generated path something like below
/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Products/Debug-iphonesimulator
the build moved forward however it failed for some other reason.
So to summarize the problem was basically me opening the xcproject and not xcworkspace.
Hope this will help beginners like me.
I had the same issue, but its why I was Building from Xcode Project, and I have to do it from XCode Workspace.
I was getting this error when trying to build the workspace from the command line. To fix it for me I needed to add -workspace <AppName>.xcworkspace to the end of my build command. I was able to figure this out thanks to the answers above regarding building from the IDE.
The failing command:
xcodebuild clean archive
-scheme releaseScheme
-configuration Release
-archivePath ../builds/<AppName>.xcarchive
-allowProvisioningUpdates
DEVELOPMENT_TEAM=<TeamId>
The final command:
xcodebuild clean archive
-scheme releaseScheme
-configuration Release
-archivePath ../builds/<AppName>.xcarchive
-allowProvisioningUpdates
-workspace <AppName>.xcworkspace
DEVELOPMENT_TEAM=<TeamId>

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

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

XCode clang failed with exit code 254

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

Jenkins can't find RestKit for my iOS app but it works interactively

I am using Jenkins for continuous compliance and my iOS project is failing to run. My app builds and runs just fine interactively. RestKit is a git submodule in my project.
The job fails with this:
CompileC build/testApp.build/Release-iphoneos/testApp.build/Objects-normal/armv7/main.o testApp/main.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp
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:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -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 -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -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 -DCONFIGURATION_Release -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -miphoneos-version-min=5.0 -iquote /Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/testApp-generated-files.hmap -I/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/testApp-own-target-headers.hmap -I/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/testApp-all-target-headers.hmap -iquote /Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/testApp-project-headers.hmap -iquote../GMGridView/GMGridView -iquote/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/Release-iphoneos/../../Headers "-iquote”/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/Release-iphoneos/usr/local/lib/include”" "-iquote”/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/UninstalledProducts/include”" -I/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/Release-iphoneos/include -I../GMGridView/GMGridView -I/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/Release-iphoneos/../../Headers -I/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/../UninstalledProducts/include "-I”/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/UninstalledProducts/include”" "-I”/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/Release-iphoneos/usr/local/lib/include”" -I/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/DerivedSources/armv7 -I/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/DerivedSources -F/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/Release-iphoneos -F/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/QuincyKit -DNS_BLOCK_ASSERTIONS=1 -include /var/folders/zn/81z3gcmj00xg6rn2mg7qzgvh0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/testApp-Prefix-glmuagpwjeknolcbkgvqhsdakvok/testApp-Prefix.pch -MMD -MT dependencies -MF /Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/Objects-normal/armv7/main.d --serialize-diagnostics /Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/Objects-normal/armv7/main.dia -c /Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/testApp/main.m -o /Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/Objects-normal/armv7/main.o
In file included from /Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/testApp/main.m:11:
/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/testApp/AppDelegate.h:14:9: fatal error: 'RestKit/RestKit.h' file not found
#import <RestKit/RestKit.h>
^
1 error generated.
It turns out that the RestKit submodule was properly being pulled, and that RestKit was being built properly, but that the header include paths were not finding the RestKit files when building via the command line while it did work via the GUI. I edited the pbxproj file, adding the required header search paths whenever I found an input for such things.
Add a new build step, for a shell-command, before the xcode build step. stick this in it:
git submodule update --init --recursive
The idea is this: Assuming "runs just fine interactively" meant "It builds fine when I build it with Xcode on my machine, which has the project's git repository locally cloned"; it seems that your local git clone has the restkit git sub module checked out OK. Your Jenkins job doesn't. It is never updating the submodules after it git pull's. It needs to, in order to build the job in Jenkins.

Resources