Archive apple LLVM 6.0 error could not read profile - ios

When in device test it's ok. But when I want to archive, xcode give the error like this.
error: Could not read profile: No such file or directory
it is the errors
CompileC /Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/Objects-normal/armv7/UIColor+Extension.o jinbi/Views/NavigationMenuView/UIColor+Extension.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /wikimo/project/iyoo-ios-app
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 objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/wikimo/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 -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -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 -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -fprofile-instr-use=/wikimo/project/iyoo-ios-app/OptimizationProfiles/jinbi.profdata -miphoneos-version-min=6.1 -iquote /Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/哎呦瘦了-generated-files.hmap -I/Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/哎呦瘦了-own-target-headers.hmap -I/Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/哎呦瘦了-all-target-headers.hmap -iquote /Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/哎呦瘦了-project-headers.hmap -I/Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/BuildProductsPath/Release-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/DerivedSources/armv7 -I/Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/DerivedSources -F/Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/BuildProductsPath/Release-iphoneos -include /Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/PrecompiledHeaders/jinbi-Prefix-gdlmasukgjdlutbqrcfgpdbwoxhr/jinbi-Prefix.pch -MMD -MT dependencies -MF /Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/Objects-normal/armv7/UIColor+Extension.d --serialize-diagnostics /Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/Objects-normal/armv7/UIColor+Extension.dia -c /wikimo/project/iyoo-ios-app/jinbi/Views/NavigationMenuView/UIColor+Extension.m -o /Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/Objects-normal/armv7/UIColor+Extension.o
because the
/Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/Objects-normal/armv7/UIColor+Extension.o
can not generate. How can I generate?
Targets -> Valid Architectures has already added armv7 architecture

Here is the solution if any one want.....
Go to Project -> Build Setting -> Apple LLVM 6.0-code generation
and clear Optimization Profile File
Clean Your project.....Build your project and archive your project....and you are done....

Endorsing [El Captain][1] response using LLVM 8.0:
Go to Project → Build Setting → Apple LLVM 8.0-code generation
Clear the Optimization Profile File
Clean project
Build project

Select App targets. Right click on the test target and delete it.
Clean your project and Run.

Simply follow this steps:
Clean your project
Remove derived data
Go to Targets -> Valid Architectures & add armv7 architecture
Build & Run your project
Hope it will work for you.

Go to Project → Build Setting → Search "OptimizationProfiles"
Clear the Optimization Profile File
Clean project (Command + K)
Build project (Command + B)

Related

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>

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!

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

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

iRate Compile Error with Swift

I am using the latest version of iRate with Swift, trying to compile my project for App Store submission.
iRate installation isn't very complicated - you drag two (optionally 3) files into your Project and then include the iRate.h file in a bridging header.
However, when I go to compile, I'm getting a Apple LLVM 6.0 Error about compiling the iRate.m file.
I've checked and the iRate.m is assigned to my project under Target Membership.
Can anyone please help?
CompileC /Users/Dan/Library/Developer/Xcode/DerivedData/DA-hizhzqckxkpqjxafuimctebfhwho/Build/Intermediates/ArchiveIntermediates/DA/IntermediateBuildFilesPath/DA.build/Release-iphoneos/DA.build/Objects-normal/armv7/iRate.o DA/iRate.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd "/Users/Dan/Projects/learn/DA"
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 objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/Dan/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 -Os -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 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -fprofile-instr-use=/Users/Dan/Projects/learn/DA/OptimizationProfiles/DA.profdata -miphoneos-version-min=8.1 -iquote /Users/Dan/Library/Developer/Xcode/DerivedData/DA-hizhzqckxkpqjxafuimctebfhwho/Build/Intermediates/ArchiveIntermediates/DA/IntermediateBuildFilesPath/DA.build/Release-iphoneos/DA.build/DA-generated-files.hmap -I/Users/Dan/Library/Developer/Xcode/DerivedData/DA-hizhzqckxkpqjxafuimctebfhwho/Build/Intermediates/ArchiveIntermediates/DA/IntermediateBuildFilesPath/DA.build/Release-iphoneos/DA.build/DA-own-target-headers.hmap -I/Users/Dan/Library/Developer/Xcode/DerivedData/DA-hizhzqckxkpqjxafuimctebfhwho/Build/Intermediates/ArchiveIntermediates/DA/IntermediateBuildFilesPath/DA.build/Release-iphoneos/DA.build/DA-all-non-framework-target-headers.hmap -ivfsoverlay /Users/Dan/Library/Developer/Xcode/DerivedData/DA-hizhzqckxkpqjxafuimctebfhwho/Build/Intermediates/ArchiveIntermediates/DA/IntermediateBuildFilesPath/DA.build/all-product-headers.yaml -iquote /Users/Dan/Library/Developer/Xcode/DerivedData/DA-hizhzqckxkpqjxafuimctebfhwho/Build/Intermediates/ArchiveIntermediates/DA/IntermediateBuildFilesPath/DA.build/Release-iphoneos/DA.build/DA-project-headers.hmap -I/Users/Dan/Library/Developer/Xcode/DerivedData/DA-hizhzqckxkpqjxafuimctebfhwho/Build/Intermediates/ArchiveIntermediates/DA/BuildProductsPath/Release-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/Dan/Library/Developer/Xcode/DerivedData/DA-hizhzqckxkpqjxafuimctebfhwho/Build/Intermediates/ArchiveIntermediates/DA/IntermediateBuildFilesPath/DA.build/Release-iphoneos/DA.build/DerivedSources/armv7 -I/Users/Dan/Library/Developer/Xcode/DerivedData/DA-hizhzqckxkpqjxafuimctebfhwho/Build/Intermediates/ArchiveIntermediates/DA/IntermediateBuildFilesPath/DA.build/Release-iphoneos/DA.build/DerivedSources -F/Users/Dan/Library/Developer/Xcode/DerivedData/DA-hizhzqckxkpqjxafuimctebfhwho/Build/Intermediates/ArchiveIntermediates/DA/BuildProductsPath/Release-iphoneos -MMD -MT dependencies -MF /Users/Dan/Library/Developer/Xcode/DerivedData/DA-hizhzqckxkpqjxafuimctebfhwho/Build/Intermediates/ArchiveIntermediates/DA/IntermediateBuildFilesPath/DA.build/Release-iphoneos/DA.build/Objects-normal/armv7/iRate.d --serialize-diagnostics /Users/Dan/Library/Developer/Xcode/DerivedData/DA-hizhzqckxkpqjxafuimctebfhwho/Build/Intermediates/ArchiveIntermediates/DA/IntermediateBuildFilesPath/DA.build/Release-iphoneos/DA.build/Objects-normal/armv7/iRate.dia -c /Users/Dan/Projects/learn/DA/DA/iRate.m -o /Users/Dan/Library/Developer/Xcode/DerivedData/DA-hizhzqckxkpqjxafuimctebfhwho/Build/Intermediates/ArchiveIntermediates/DA/IntermediateBuildFilesPath/DA.build/Release-iphoneos/DA.build/Objects-normal/armv7/iRate.o
error: Could not read profile: No such file or directory
1 error generated.
As suggested by Michael Dautermann, removing the reference under the Optimization Profile File key found in Xcode > Project > Build Settings under the Apple LLVM 6.0 - Code Generation section.
I am new to Xcode and, at one point, had selected Product > Perform Action > Generate Optimization Profile menu option.
While I ended up aborting (read: I never finished generating the optimization profile), it apparently populated the Optimization Profile File key, which caused my error when I went to Archive.

Cocoapods headers not found when building application

For the past few days I've been attempting to build an application, which keeps failing and gives the message "file not found". My friend is able to build the application on his computer, but I've tried on 3 computers and all 3 have been giving me the same error. I've tried uninstalling & reinstalling the cocoapods gem, deleting the pods and podfile.lock and reinstalling & upgrading pods without any luck. When I go into the pods folder, I see all the files, and it even autocompletes the file name in the prefix.pch file (Where the issue occurs). I'm using the same cocoapods as my friend (v0.34.4) & Xcode v6.1.
Also worth noting - the XCTest.framework, Tests.xctest and the libpods (but not the expanded pods folders) are all red.
Here's the error I get when compiling:
ProcessPCH /Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/PrecompiledHeaders/app-Prefix-ahotoqoympyvtcaartebeekroqoj/app-Prefix.pch.pch app/app-Prefix.pch normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/name/app
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 x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/name/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 -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 -DDEBUG=1 -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=7.1 -iquote /Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/app.build/Debug-iphonesimulator/appTests.build/appTests-generated-files.hmap -I/Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/app.build/Debug-iphonesimulator/appTests.build/appTests-own-target-headers.hmap -I/Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/app.build/Debug-iphonesimulator/appTests.build/appTests-all-target-headers.hmap -iquote /Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/app.build/Debug-iphonesimulator/appTests.build/appTests-project-headers.hmap -I/Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/app.build/Debug-iphonesimulator/appTests.build/DerivedSources/x86_64 -I/Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/app.build/Debug-iphonesimulator/appTests.build/DerivedSources -F/Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/Developer/Library/Frameworks -MD -MT dependencies -MF /Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/PrecompiledHeaders/app-Prefix-ahotoqoympyvtcaartebeekroqoj/app-Prefix.pch.d -c /Users/name/app/app/app-Prefix.pch -o /Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/PrecompiledHeaders/app-Prefix-ahotoqoympyvtcaartebeekroqoj/app-Prefix.pch.pch --serialize-diagnostics /Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/PrecompiledHeaders/app-Prefix-ahotoqoympyvtcaartebeekroqoj/app-Prefix.pch.dia
/Users/name/app/app/app-Prefix.pch:17:13: fatal error: 'Parse/Parse.h' file not found
#import <Parse/Parse.h>
^1 error generated.
I finally managed to get the app to build.
Here's what I did:
I went to Product -> Scheme -> Edit Schemes
I subsequently unchecked the box under the Target -> Tests for "Analyze".
As the build had been previously failing at that point, so by unchecking it I was able to run it with no issues. Having spent time using it over the last few hours, I find it to be working normally, and can vouch that the issues mentioned previously by xCode have had no impact on real world usage (product is on market with many users).
Thanks for the folks that previously helped out.

Resources