react-native info in your terminal and copy the results here. React Native Environment Info:
System:
OS: macOS 10.14.4
CPU: (4) x64 Intel(R) Core(TM) i5-6360U CPU @ 2.00GHz
Memory: 46.10 MB / 8.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 11.14.0 - /usr/local/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
Android SDK:
API Levels: 23, 24, 26, 27, 28
Build Tools: 23.0.1, 23.0.2, 23.0.3, 26.0.0, 26.0.1, 28.0.3
System Images: android-26 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.5 => 0.59.5
react-native run-iosIt should run quickly. 5 mins is more than enough but it took 18 minutes & still went on an infinite loop. I am working on this from 2-3 days & it takes shit load of time everyday. Earlier it wasn't like that.
I quit the first run & now it finished. This time ~5 mins. This is a serious issue & has happened to me a lot of times for last few days :)
Hey @deadcoder0904, it's odd that 14 hours ago you got a new project init'd to 0.59.5; it should've been 0.59.8. Your info also doesn't list the react-native-cli version as expected. Can you upgrade that and give this another shot?
If you're still having an issue, please follow up with a screenshot of the state that you're left in; I'm really curious what you mean by "infinite loop".
Infinite loop means the command line kept on going with some for loop error & it was just blobs of text with the for loop error.
Also, I created the project 3-4 days ago I think :)
Can you try specifying simulator and scheme?
Like
react-native run-ios --simulator "iPhone X"
Also, can you paste in the build log?
Can you try specifying simulator and scheme?
iPhone X 12.2 (Source (check the demo pic): https://github.com/deadcoder0904/expo-google-admob)
Also, can you paste in the build log?
Where do I find this?
I upgraded to latest RN v0.59.5 & tried doing react-native run-ios, it threw
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 ReactNativeGoogleAdmob.xcworkspace
I opened MyAppName.xcworkspace through XCode & it worked fine. Then I again tried opening through react-native run-ios, it again threw the same error.
PS - I tried recording a video but it went over 209MB 😂
I first cleaned everything & reinstalled everything using https://github.com/tiaanduplessis/react-native-surrender & after that I typed surrender --yarn which is a shortcut for
watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules && yarn install && yarn cache clean --force
I did react-native run-ios | pbcopy on my Mac -
info Found Xcode workspace ReactNativeGoogleAdmob.xcworkspace
info Building using "xcodebuild -workspace ReactNativeGoogleAdmob.xcworkspace -configuration Debug -scheme ReactNativeGoogleAdmob -destination id=291161AD-FC2E-404B-A19A-33EB7DFF7360 -derivedDataPath build/ReactNativeGoogleAdmob"
info User defaults from command line:
info IDEDerivedDataPathOverride = ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob
info note: Using new build system
info note: Planning build
info note: Using build description from disk
info PhaseScriptExecution Start\ Packager ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh (in target: React)
cd ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React
/bin/sh -c ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh
info Connection to localhost port 8081 [tcp/sunproxyadmin] succeeded!
info
info Analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTAssert.m normal x86_64 (in target: React)
cd ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/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 -Wmissing-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 -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -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 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__clang_analyzer__ -Xclang -analyzer-output=plist-multi-file -Xclang -analyzer-config -Xclang path-diagnostics-alternate=true -Xclang -analyzer-config -Xclang report-in-main-source-file=true -Xclang -analyzer-config -Xclang nullability:NoDiagnoseCallsToSystemHeaders=true -Xclang -analyzer-checker -Xclang security.insecureAPI.UncheckedReturn -Xclang -analyzer-checker -Xclang security.insecureAPI.getpw -Xclang -analyzer-checker -Xclang security.insecureAPI.gets -Xclang -analyzer-checker -Xclang security.insecureAPI.mkstemp -Xclang -analyzer-checker -Xclang security.insecureAPI.mktemp -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.rand -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.strcpy -Xclang -analyzer-checker -Xclang security.insecureAPI.vfork -iquote ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-generated-files.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-own-target-headers.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-all-target-headers.hmap -iquote ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-project-headers.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Products/Debug-iphonesimulator/include -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/boost_1_63_0 -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/folly-2018.10.22.00 -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/glog-0.3.5/src -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources-normal/x86_64 -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTAssert.d --analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTAssert.m -o ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTAssert.plist
info error: PCH was compiled with module cache path '~/Expo/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex/3F5IBYE35CP7E', but the path is currently '~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex/3F5IBYE35CP7E'
info While building module 'Foundation' imported from ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTAssert.h:8:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module 'CoreFoundation'
info #include <CoreFoundation/CoreFoundation.h>
~~~~~~~~^
info In file included from
info
info ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTAssert.m:
info 8
info :
info ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTAssert.h
info
info :
info
info 8
info
info :
info 9
info :
info
info fatal error
info
info :
info
info could not build module 'Foundation'
info
info
info #import <Foundation/Foundation.h>
~~~~~~~^
info 3 errors generated.
info Command Analyze failed with a nonzero exit code
info
info Analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTConvert.m normal x86_64 (in target: React)
cd ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/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 -Wmissing-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 -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -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 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__clang_analyzer__ -Xclang -analyzer-output=plist-multi-file -Xclang -analyzer-config -Xclang path-diagnostics-alternate=true -Xclang -analyzer-config -Xclang report-in-main-source-file=true -Xclang -analyzer-config -Xclang nullability:NoDiagnoseCallsToSystemHeaders=true -Xclang -analyzer-checker -Xclang security.insecureAPI.UncheckedReturn -Xclang -analyzer-checker -Xclang security.insecureAPI.getpw -Xclang -analyzer-checker -Xclang security.insecureAPI.gets -Xclang -analyzer-checker -Xclang security.insecureAPI.mkstemp -Xclang -analyzer-checker -Xclang security.insecureAPI.mktemp -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.rand -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.strcpy -Xclang -analyzer-checker -Xclang security.insecureAPI.vfork -iquote ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-generated-files.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-own-target-headers.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-all-target-headers.hmap -iquote ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-project-headers.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Products/Debug-iphonesimulator/include -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/boost_1_63_0 -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/folly-2018.10.22.00 -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/glog-0.3.5/src -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources-normal/x86_64 -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTConvert.d --analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTConvert.m -o ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTConvert.plist
info error: PCH was compiled with module cache path '~/Expo/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex/3F5IBYE35CP7E', but the path is currently '~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex/3F5IBYE35CP7E'
In file included from ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTConvert.m:8:
~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTConvert.h:8:9: fatal error: could not build module 'QuartzCore'
#import <QuartzCore/QuartzCore.h>
~~~~~~~^
info
info Analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTBridge.m normal x86_64 (in target: React)
cd ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/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 -Wmissing-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 -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -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 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__clang_analyzer__ -Xclang -analyzer-output=plist-multi-file -Xclang -analyzer-config -Xclang path-diagnostics-alternate=true -Xclang -analyzer-config -Xclang report-in-main-source-file=true -Xclang -analyzer-config -Xclang nullability:NoDiagnoseCallsToSystemHeaders=true -Xclang -analyzer-checker -Xclang security.insecureAPI.UncheckedReturn -Xclang -analyzer-checker -Xclang security.insecureAPI.getpw -Xclang -analyzer-checker -Xclang security.insecureAPI.gets -Xclang -analyzer-checker -Xclang security.insecureAPI.mkstemp -Xclang -analyzer-checker -Xclang security.insecureAPI.mktemp -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.rand -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.strcpy -Xclang -analyzer-checker -Xclang security.insecureAPI.vfork -iquote ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-generated-files.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-own-target-headers.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-all-target-headers.hmap -iquote ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-project-headers.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Products/Debug-iphonesimulator/include -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/boost_1_63_0 -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/folly-2018.10.22.00 -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/glog-0.3.5/src -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources-normal/x86_64 -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTBridge.d --analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTBridge.m -o ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTBridge.plist
info
info Analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTBundleURLProvider.m normal x86_64 (in target: React)
cd ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/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 -Wmissing-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 -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -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 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__clang_analyzer__ -Xclang -analyzer-output=plist-multi-file -Xclang -analyzer-config -Xclang path-diagnostics-alternate=true -Xclang -analyzer-config -Xclang report-in-main-source-file=true -Xclang -analyzer-config -Xclang nullability:NoDiagnoseCallsToSystemHeaders=true -Xclang -analyzer-checker -Xclang security.insecureAPI.UncheckedReturn -Xclang -analyzer-checker -Xclang security.insecureAPI.getpw -Xclang -analyzer-checker -Xclang security.insecureAPI.gets -Xclang -analyzer-checker -Xclang security.insecureAPI.mkstemp -Xclang -analyzer-checker -Xclang security.insecureAPI.mktemp -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.rand -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.strcpy -Xclang -analyzer-checker -Xclang security.insecureAPI.vfork -iquote ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-generated-files.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-own-target-headers.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-all-target-headers.hmap -iquote ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-project-headers.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Products/Debug-iphonesimulator/include -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/boost_1_63_0 -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/folly-2018.10.22.00 -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/glog-0.3.5/src -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources-normal/x86_64 -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTBundleURLProvider.d --analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTBundleURLProvider.m -o ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTBundleURLProvider.plist
error: PCH was compiled with module cache path '~/Expo/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex/3F5IBYE35CP7E', but the path is currently '~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex/3F5IBYE35CP7E'
While building module 'Foundation' imported from ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTBundleURLProvider.h:8:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
~~~~~~~~^
In file included from ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTBundleURLProvider.m:8:
~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTBundleURLProvider.h:8:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
error: PCH was compiled with module cache path '~/Expo/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex/3F5IBYE35CP7E', but the path is currently '~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex/3F5IBYE35CP7E'
I again did react-native run-ios & copied error from the terminal
info Found Xcode workspace ReactNativeGoogleAdmob.xcworkspace
info Building using "xcodebuild -workspace ReactNativeGoogleAdmob.xcworkspace -configuration Debug -scheme ReactNativeGoogleAdmob -destination id=291161AD-FC2E-404B-A19A-33EB7DFF7360 -derivedDataPath build/ReactNativeGoogleAdmob"
info User defaults from command line:
info IDEDerivedDataPathOverride = ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob
info note: Using new build system
info note: Planning build
info note: Using build description from disk
info PhaseScriptExecution Start\ Packager ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh (in target: React)
cd ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React
/bin/sh -c ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh
info Connection to localhost port 8081 [tcp/sunproxyadmin] succeeded!
info
info Analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTBridge.m normal x86_64 (in target: React)
cd ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/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 -Wmissing-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 -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -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 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__clang_analyzer__ -Xclang -analyzer-output=plist-multi-file -Xclang -analyzer-config -Xclang path-diagnostics-alternate=true -Xclang -analyzer-config -Xclang report-in-main-source-file=true -Xclang -analyzer-config -Xclang nullability:NoDiagnoseCallsToSystemHeaders=true -Xclang -analyzer-checker -Xclang security.insecureAPI.UncheckedReturn -Xclang -analyzer-checker -Xclang security.insecureAPI.getpw -Xclang -analyzer-checker -Xclang security.insecureAPI.gets -Xclang -analyzer-checker -Xclang security.insecureAPI.mkstemp -Xclang -analyzer-checker -Xclang security.insecureAPI.mktemp -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.rand -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.strcpy -Xclang -analyzer-checker -Xclang security.insecureAPI.vfork -iquote ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-generated-files.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-own-target-headers.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-all-target-headers.hmap -iquote ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-project-headers.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Products/Debug-iphonesimulator/include -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/boost_1_63_0 -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/folly-2018.10.22.00 -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/glog-0.3.5/src -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources-normal/x86_64 -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTBridge.d --analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTBridge.m -o ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTBridge.plist
info error: PCH was compiled with module cache path '~/Expo/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex/3F5IBYE35CP7E', but the path is currently '~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex/3F5IBYE35CP7E'
info While building module 'UIKit' imported from ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTBridge.h:8:
While building module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module 'CoreFoundation'
info #include <CoreFoundation/CoreFoundation.h>
~~~~~~~~^
While building module 'UIKit' imported from ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTBridge.h:8:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
In file included from ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTBridge.m:8:
~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTBridge.h:8:9: fatal error: could not build module 'UIKit'
#import <UIKit/UIKit.h>
~~~~~~~^
error: PCH was compiled with module cache path '~/Expo/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex/3F5IBYE35CP7E', but the path is currently '~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex/3F5IBYE35CP7E'
error: PCH was compiled with module cache path '~/Expo/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex/3F5IBYE35CP7E', but the path is currently '~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex/3F5IBYE35CP7E'
6 errors generated.
Command Analyze failed with a nonzero exit code
Analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTAssert.m normal x86_64 (in target: React)
cd ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/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 -Wmissing-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 -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -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 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__clang_analyzer__ -Xclang -analyzer-output=plist-multi-file -Xclang -analyzer-config -Xclang path-diagnostics-alternate=true -Xclang -analyzer-config -Xclang report-in-main-source-file=true -Xclang -analyzer-config -Xclang nullability:NoDiagnoseCallsToSystemHeaders=true -Xclang -analyzer-checker -Xclang security.insecureAPI.UncheckedReturn -Xclang -analyzer-checker -Xclang security.insecureAPI.getpw -Xclang -analyzer-checker -Xclang security.insecureAPI.gets -Xclang -analyzer-checker -Xclang security.insecureAPI.mkstemp -Xclang -analyzer-checker -Xclang security.insecureAPI.mktemp -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.rand -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.strcpy -Xclang -analyzer-checker -Xclang security.insecureAPI.vfork -iquote ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-generated-files.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-own-target-headers.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-all-target-headers.hmap -iquote ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-project-headers.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Products/Debug-iphonesimulator/include -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/boost_1_63_0 -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/folly-2018.10.22.00 -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/glog-0.3.5/src -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources-normal/x86_64 -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTAssert.d --analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTAssert.m -o ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTAssert.plist
info error: PCH was compiled with module cache path '~/Expo/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex/3F5IBYE35CP7E', but the path is currently '~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex/3F5IBYE35CP7E'
While building module 'Foundation' imported from ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTAssert.h:8:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
~~~~~~~~^
In file included from ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTAssert.m:8:
~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTAssert.h:8:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
Analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTBundleURLProvider.m normal x86_64 (in target: React)
cd ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/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 -Wmissing-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 -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -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 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__clang_analyzer__ -Xclang -analyzer-output=plist-multi-file -Xclang -analyzer-config -Xclang path-diagnostics-alternate=true -Xclang -analyzer-config -Xclang report-in-main-source-file=true -Xclang -analyzer-config -Xclang nullability:NoDiagnoseCallsToSystemHeaders=true -Xclang -analyzer-checker -Xclang security.insecureAPI.UncheckedReturn -Xclang -analyzer-checker -Xclang security.insecureAPI.getpw -Xclang -analyzer-checker -Xclang security.insecureAPI.gets -Xclang -analyzer-checker -Xclang security.insecureAPI.mkstemp -Xclang -analyzer-checker -Xclang security.insecureAPI.mktemp -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.rand -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.strcpy -Xclang -analyzer-checker -Xclang security.insecureAPI.vfork -iquote ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-generated-files.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-own-target-headers.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-all-target-headers.hmap -iquote ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-project-headers.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Products/Debug-iphonesimulator/include -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/boost_1_63_0 -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/folly-2018.10.22.00 -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/glog-0.3.5/src -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources-normal/x86_64 -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTBundleURLProvider.d --analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTBundleURLProvider.m -o ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTBundleURLProvider.plist
info Analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTConvert.m normal x86_64 (in target: React)
cd ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/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 -Wmissing-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 -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -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 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__clang_analyzer__ -Xclang -analyzer-output=plist-multi-file -Xclang -analyzer-config -Xclang path-diagnostics-alternate=true -Xclang -analyzer-config -Xclang report-in-main-source-file=true -Xclang -analyzer-config -Xclang nullability:NoDiagnoseCallsToSystemHeaders=true -Xclang -analyzer-checker -Xclang security.insecureAPI.UncheckedReturn -Xclang -analyzer-checker -Xclang security.insecureAPI.getpw -Xclang -analyzer-checker -Xclang security.insecureAPI.gets -Xclang -analyzer-checker -Xclang security.insecureAPI.mkstemp -Xclang -analyzer-checker -Xclang security.insecureAPI.mktemp -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.rand -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.strcpy -Xclang -analyzer-checker -Xclang security.insecureAPI.vfork -iquote ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-generated-files.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-own-target-headers.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-all-target-headers.hmap -iquote ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-project-headers.hmap -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Products/Debug-iphonesimulator/include -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/boost_1_63_0 -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/folly-2018.10.22.00 -I~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/third-party/glog-0.3.5/src -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources-normal/x86_64 -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTConvert.d --analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTConvert.m -o ~/ReactNative/ReactNativeGoogleAdmob/ios/build/ReactNativeGoogleAdmob/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTConvert.plist
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 ReactNativeGoogleAdmob.xcworkspace
2019-05-12 12:07:30.699 xcodebuild[14089:92561] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WakaTime.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-05-12 12:07:30.700 xcodebuild[14089:92561] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin' not present in DVTPlugInCompatibilityUUIDs
** BUILD FAILED **
The following build commands failed:
Analyze ~/ReactNative/ReactNativeGoogleAdmob/node_modules/react-native/React/Base/RCTBridge.m normal x86_64
(1 failure)
Have you tried delete ios/build folder?
In your log, the error is PCH was compiled with module cache path
You can search for that here
And this seems to be relevant issue.
Thank you @zhigang1992 deleting the ios/build folder and running react-native run-ios again fixed the issue.
I am also using latest version of react-native now
{
"name": "react-native-google-admob",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"expo-ads-admob": "^4.0.0",
"react": "16.8.6",
"react-native": "0.59.8",
"react-native-elements": "^1.1.0",
"react-native-unimodules": "^0.3.1",
"react-native-vector-icons": "^6.4.2"
},
"devDependencies": {
"@babel/core": "^7.4.4",
"@babel/runtime": "^7.4.4",
"babel-jest": "^24.8.0",
"jest": "^24.8.0",
"metro-react-native-babel-preset": "^0.54.0",
"react-test-renderer": "16.8.6"
},
"jest": {
"preset": "react-native"
}
}
Although it took ~5-7 mins to build the first time which I think is still a lot. Close this if it's normal :)
There isn't much we can do here, good thing that we only need to compile it once.
Later on if you haven't made any native modifications (aka. react-native link)
You simply launch the Simulator directly from Xcode and start the app.
That sucks because Flutter is like ~30 secs or way less the first time
@deadcoder0904 , there are a lot of factors that go into the speed of the first build, but as @zhigang1992 said luckily those are only encountered initially. Flutter takes a different approach with shipping compiled code. I'm glad that you were able to get up and running.
Since there didn't turn out to be a bug here, please close the issue.
Have you tried delete
ios/buildfolder?
You are right. fixed the 「We ran "xcodebuild" command but it exited with error code 65」
Most helpful comment
Have you tried delete
ios/buildfolder?