Appcenter-sdk-react-native: App Center Build fails on iOS

Created on 2 Nov 2018  路  14Comments  路  Source: microsoft/appcenter-sdk-react-native

Description

iOS successfully builds/archives with Xcode. However, App Center Build keeps failing on iOS. I have a feeling it's related to set Legacy Build System as a Workspace setting within App Center Build.

Details

1. Which version of the App Center SDK are you using?

1.9.0

2. Which OS version did you experience the issue on?

iOS 11

3. What device version did you see this error on? Were you using an emulator or a physical device?

https://appcenter.ms/users/ethanneff/apps/example/build/branches/master/builds/24

4. What third party libraries are you using?

react-native-firebase

5. Run the following command and paste the output below: react-native info

  React Native Environment Info:
    System:
      OS: macOS 10.14
      CPU: x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
      Memory: 509.62 MB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 8.11.2 - /usr/local/bin/node
      Yarn: 1.12.1 - /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.1, macOS 10.14, tvOS 12.1, watchOS 5.1
      Android SDK:
        Build Tools: 23.0.1, 23.0.3, 25.0.0, 25.0.1, 25.0.2, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.0, 28.0.1, 28.0.2
        API Levels: 22, 23, 24, 25, 26, 27, 28
    IDEs:
      Android Studio: 3.1 AI-173.4907809
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.6.0 => 16.6.0
      react-native: 0.56.1 => 0.56.1
    npmGlobalPackages:
      create-react-native-app: 2.0.2
      create-react-native-web-app: 0.1.6
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7

6. If you're developing for React Native iOS, run the following command and paste the output below: pod --version

1.5.3

7. Please enable verbose logging for your app using [MSAppCenter setLogLevel: MSLogLevelVerbose]; before your call to [AppCenterReactNative register]; (or any other SDK registration). For Android, use AppCenter.setLogLevel(android.util.Log.VERBOSE); before your SoLoader.init call. Include the logs here:

CompileC /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/IntermediateBuildFilesPath/RNFirebase.build/Release-iphoneos/RNFirebase.build/Objects-normal/armv7/RNFirebaseFunctions.o RNFirebase/functions/RNFirebaseFunctions.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode_9.4.1.app/Contents/Developer/usr/bin:/Library/Frameworks/Mono.framework/Versions/4/bin:/Users/vsts/.nvm/versions/node/v8.12.0/bin:/usr/local/bin:/usr/local/sbin:/Users/vsts/bin:/Users/vsts/.yarn/bin:/usr/local/go/bin:/Users/vsts/Library/Android/sdk/tools:/Users/vsts/Library/Android/sdk/platform-tools:/Users/vsts/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/vsts/.azcopy"
    /Applications/Xcode_9.4.1.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/vsts/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/vsts/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -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-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 -Wconditional-uninitialized -Wno-un...
While building module 'Foundation' imported from /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios/RNFirebase/functions/RNFirebaseFunctions.h:3:
While building module 'CoreFoundation' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Darwin' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
In file included from <module-includes>:33:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/wchar.h:91:
In file included from ../../../ios/Pods/Headers/Public/gRPC-C++/grpcpp/support/time.h:22:
../../../ios/Pods/Headers/Public/gRPC-C++/grpcpp/impl/codegen/time.h:22:10: fatal error: 'chrono' file not found
#include <chrono>
         ^~~~~~~~
1 error generated.
While building module 'Foundation' imported from /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios/RNFirebase/functions/RNFirebaseFunctions.h:3:
While building module 'CoreFoundation' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:10: fatal error: could not build module 'Darwin'
#include <sys/types.h>
 ~~~~~~~~^
While building module 'Foundation' imported from /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios/RNFirebase/functions/RNFirebaseFunctions.h:3:
While building module 'CoreFoundation' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Dispatch' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/dispatch/dispatch.h:25:10: fatal error: could not build module 'Darwin'
#include <Availability.h>
 ~~~~~~~~^
While building module 'Foundation' imported from /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios/RNFirebase/functions/RNFirebaseFunctions.h:3:
While building module 'CoreFoundation' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Dispatch' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
While building module 'os_object' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/dispatch/dispatch.h:59:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/os/object.h:25:10: fatal error: could not build module 'Darwin'
#include <Availability.h>
 ~~~~~~~~^
1 error generated.
2 errors generated.
4 errors generated.
While building module 'Foundation' imported from /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios/RNFirebase/functions/RNFirebaseFunctions.h:3:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
 ~~~~~~~~^
While building module 'Foundation' imported from /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios/RNFirebase/functions/RNFirebaseFunctions.h:3:
While building module 'ObjectiveC' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:6:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/objc/./message.h:27:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/objc/objc.h:31:10: fatal error: could not build module 'Darwin'
#include <sys/types.h>      // for __DARWIN_NULL
 ~~~~~~~~^
1 error generated.
While building module 'Foundation' imported from /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios/RNFirebase/functions/RNFirebaseFunctions.h:3:
While building module 'Security' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h:27:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:27:10: fatal error: could not build module 'Darwin'
#include <TargetConditionals.h>
 ~~~~~~~~^
1 error generated.
7 errors generated.
In file included from /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios/RNFirebase/functions/RNFirebaseFunctions.m:1:
/Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios/RNFirebase/functions/RNFirebaseFunctions.h:3:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
 ~~~~~~~^
While building module 'UIKit' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridge.h:8:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h:8:9: fatal error: could not build module 'Darwin'
#import <Availability.h>
 ~~~~~~~^
While building module 'UIKit' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridge.h:8:
While building module 'CoreGraphics' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:9:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:8:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:8:10: fatal error: could not build module 'Darwin'
#include <stdbool.h>
 ~~~~~~~~^
1 error generated.
While building module 'UIKit' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridge.h:8:
While building module 'QuartzCore' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:9:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:9:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:9:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:11:10: fatal error: could not build module 'Darwin'
#include <stdbool.h>
 ~~~~~~~~^
While building module 'UIKit' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridge.h:8:
While building module 'QuartzCore' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:9:
While building module 'OpenGLES' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:7:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h:8:10: fatal error: could not build module 'Foundation'
#include <Foundation/Foundation.h>
 ~~~~~~~~^
1 error generated.
While building module 'UIKit' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridge.h:8:
While building module 'QuartzCore' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:9:
While building module 'Metal' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMetalLayer.h:7:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.h:8:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h:8:9: fatal error: could not build module 'Darwin'
#import <Availability.h>
 ~~~~~~~^
While building module 'UIKit' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridge.h:8:
While building module 'QuartzCore' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:9:
While building module 'Metal' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMetalLayer.h:7:
While building module 'IOSurface' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h:15:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h:12:10: fatal error: could not build module 'Darwin'
#include <sys/cdefs.h>
 ~~~~~~~~^
1 error generated.
2 errors generated.
4 errors generated.
While building module 'UIKit' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridge.h:8:
While building module 'CoreImage' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:11:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h:8:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h:10:10: fatal error: could not build module 'Darwin'
#include <TargetConditionals.h>
 ~~~~~~~~^
While building module 'UIKit' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridge.h:8:
While building module 'CoreImage' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:11:
While building module 'CoreVideo' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:10:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:16:10: fatal error: could not build module 'Darwin'
#include <TargetConditionals.h>
 ~~~~~~~~^
1 error generated.
While building module 'UIKit' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridge.h:8:
While building module 'CoreImage' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:11:
While building module 'ImageIO' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:11:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h:10:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h:11:10: fatal error: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
 ~~~~~~~~^
1 error generated.
3 errors generated.
While building module 'UIKit' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridge.h:8:
While building module 'CoreText' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSText.h:10:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h:20:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTDefines.h:12:10: fatal error: could not build module 'Darwin'
#include <Availability.h>
 ~~~~~~~~^
1 error generated.
While building module 'UIKit' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridge.h:8:
While building module 'FileProvider' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSFileProviderExtension.h:14:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/FileProvider.framework/Headers/FileProvider.h:8:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderDomain.h:8:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
 ~~~~~~~^
1 error generated.
11 errors generated.
19 errors generated.

CompileC /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/IntermediateBuildFilesPath/RNFirebase.build/Release-iphoneos/RNFirebase.build/Objects-normal/armv7/RNFirebaseInstanceId.o RNFirebase/instanceid/RNFirebaseInstanceId.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode_9.4.1.app/Contents/Developer/usr/bin:/Library/Frameworks/Mono.framework/Versions/4/bin:/Users/vsts/.nvm/versions/node/v8.12.0/bin:/usr/local/bin:/usr/local/sbin:/Users/vsts/bin:/Users/vsts/.yarn/bin:/usr/local/go/bin:/Users/vsts/Library/Android/sdk/tools:/Users/vsts/Library/Android/sdk/platform-tools:/Users/vsts/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/vsts/.azcopy"
    /Applications/Xcode_9.4.1.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/vsts/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/vsts/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -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-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 -Wconditional-uninitialized -Wno-un...
While building module 'Foundation' imported from /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios/RNFirebase/instanceid/RNFirebaseInstanceId.h:3:
While building module 'CoreFoundation' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Darwin' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
In file included from <module-includes>:33:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/wchar.h:91:
In file included from ../../../ios/Pods/Headers/Public/gRPC-C++/grpcpp/support/time.h:22:
../../../ios/Pods/Headers/Public/gRPC-C++/grpcpp/impl/codegen/time.h:22:10: fatal error: 'chrono' file not found
#include <chrono>
         ^~~~~~~~

CompileC /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/IntermediateBuildFilesPath/RNFirebase.build/Release-iphoneos/RNFirebase.build/Objects-normal/armv7/RNFirebaseAdMobRewardedVideo.o RNFirebase/admob/RNFirebaseAdMobRewardedVideo.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode_9.4.1.app/Contents/Developer/usr/bin:/Library/Frameworks/Mono.framework/Versions/4/bin:/Users/vsts/.nvm/versions/node/v8.12.0/bin:/usr/local/bin:/usr/local/sbin:/Users/vsts/bin:/Users/vsts/.yarn/bin:/usr/local/go/bin:/Users/vsts/Library/Android/sdk/tools:/Users/vsts/Library/Android/sdk/platform-tools:/Users/vsts/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/vsts/.azcopy"
    /Applications/Xcode_9.4.1.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/vsts/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/vsts/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -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-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 -Wconditional-uninitialized -Wno-un...
While building module 'Foundation' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridgeModule.h:8:
While building module 'CoreFoundation' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Darwin' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
In file included from <module-includes>:33:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/wchar.h:91:
In file included from ../../../ios/Pods/Headers/Public/gRPC-C++/grpcpp/support/time.h:22:
../../../ios/Pods/Headers/Public/gRPC-C++/grpcpp/impl/codegen/time.h:22:10: fatal error: 'chrono' file not found
#include <chrono>
         ^~~~~~~~
1 error generated.
While building module 'Foundation' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridgeModule.h:8:
While building module 'CoreFoundation' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:10: fatal error: could not build module 'Darwin'
#include <sys/types.h>
 ~~~~~~~~^
While building module 'Foundation' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridgeModule.h:8:
While building module 'CoreFoundation' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Dispatch' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/dispatch/dispatch.h:25:10: fatal error: could not build module 'Darwin'
#include <Availability.h>
 ~~~~~~~~^
While building module 'Foundation' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridgeModule.h:8:
While building module 'CoreFoundation' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Dispatch' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
While building module 'os_object' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/dispatch/dispatch.h:59:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/os/object.h:25:10: fatal error: could not build module 'Darwin'
#include <Availability.h>
 ~~~~~~~~^
1 error generated.
2 errors generated.
4 errors generated.
While building module 'Foundation' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridgeModule.h:8:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
 ~~~~~~~~^
While building module 'Foundation' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridgeModule.h:8:
While building module 'ObjectiveC' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:6:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/objc/./message.h:27:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/objc/objc.h:31:10: fatal error: could not build module 'Darwin'
#include <sys/types.h>      // for __DARWIN_NULL
 ~~~~~~~~^
1 error generated.
While building module 'Foundation' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridgeModule.h:8:
While building module 'Security' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h:27:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:27:10: fatal error: could not build module 'Darwin'
#include <TargetConditionals.h>
 ~~~~~~~~^
1 error generated.
7 errors generated.
In file included from /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios/RNFirebase/admob/RNFirebaseAdMobRewardedVideo.m:1:
In file included from /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios/RNFirebase/admob/RNFirebaseAdMobRewardedVideo.h:4:
/Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTBridgeModule.h:8:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
 ~~~~~~~^

CompileC /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/IntermediateBuildFilesPath/RNFirebase.build/Release-iphoneos/RNFirebase.build/Objects-normal/armv7/RCTConvert+UIBackgroundFetchResult.o RNFirebase/converters/RCTConvert+UIBackgroundFetchResult.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode_9.4.1.app/Contents/Developer/usr/bin:/Library/Frameworks/Mono.framework/Versions/4/bin:/Users/vsts/.nvm/versions/node/v8.12.0/bin:/usr/local/bin:/usr/local/sbin:/Users/vsts/bin:/Users/vsts/.yarn/bin:/usr/local/go/bin:/Users/vsts/Library/Android/sdk/tools:/Users/vsts/Library/Android/sdk/platform-tools:/Users/vsts/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/vsts/.azcopy"
    /Applications/Xcode_9.4.1.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/vsts/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/vsts/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -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-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 -Wconditional-uninitialized -Wno-un...
While building module 'QuartzCore' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:8:
While building module 'Darwin' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:11:
In file included from <module-includes>:33:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/wchar.h:91:
In file included from ../../../ios/Pods/Headers/Public/gRPC-C++/grpcpp/support/time.h:22:
../../../ios/Pods/Headers/Public/gRPC-C++/grpcpp/impl/codegen/time.h:22:10: fatal error: 'chrono' file not found
#include <chrono>
         ^~~~~~~~
1 error generated.
While building module 'QuartzCore' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:8:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:9:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:9:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:11:10: fatal error: could not build module 'Darwin'
#include <stdbool.h>
 ~~~~~~~~^
While building module 'QuartzCore' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:8:
While building module 'CoreFoundation' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:16:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:10: fatal error: could not build module 'Darwin'
#include <sys/types.h>
 ~~~~~~~~^
While building module 'QuartzCore' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:8:
While building module 'CoreFoundation' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:16:
While building module 'Dispatch' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/dispatch/dispatch.h:25:10: fatal error: could not build module 'Darwin'
#include <Availability.h>
 ~~~~~~~~^
While building module 'QuartzCore' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:8:
While building module 'CoreFoundation' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:16:
While building module 'Dispatch' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
While building module 'os_object' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/dispatch/dispatch.h:59:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/os/object.h:25:10: fatal error: could not build module 'Darwin'
#include <Availability.h>
 ~~~~~~~~^
1 error generated.
2 errors generated.
3 errors generated.
While building module 'QuartzCore' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:8:
While building module 'CoreGraphics' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:17:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:8:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:8:10: fatal error: could not build module 'Darwin'
#include <stdbool.h>
 ~~~~~~~~^
1 error generated.
While building module 'QuartzCore' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:8:
While building module 'Foundation' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h:12:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
 ~~~~~~~~^
While building module 'QuartzCore' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:8:
While building module 'Foundation' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h:12:
While building module 'ObjectiveC' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:6:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/objc/./message.h:27:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/objc/objc.h:31:10: fatal error: could not build module 'Darwin'
#include <sys/types.h>      // for __DARWIN_NULL
 ~~~~~~~~^
1 error generated.
While building module 'QuartzCore' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:8:
While building module 'Foundation' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h:12:
While building module 'Security' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h:27:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:27:10: fatal error: could not build module 'Darwin'
#include <TargetConditionals.h>
 ~~~~~~~~^
1 error generated.
3 errors generated.
While building module 'QuartzCore' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:8:
While building module 'OpenGLES' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:7:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h:8:10: fatal error: could not build module 'Foundation'
#include <Foundation/Foundation.h>
 ~~~~~~~~^
1 error generated.
While building module 'QuartzCore' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:8:
While building module 'Metal' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMetalLayer.h:7:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.h:8:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h:8:9: fatal error: could not build module 'Darwin'
#import <Availability.h>
 ~~~~~~~^
While building module 'QuartzCore' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:8:
While building module 'Metal' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMetalLayer.h:7:
While building module 'IOSurface' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h:15:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h:12:10: fatal error: could not build module 'Darwin'
#include <sys/cdefs.h>
 ~~~~~~~~^
1 error generated.
2 errors generated.
12 errors generated.
In file included from /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios/RNFirebase/converters/RCTConvert+UIBackgroundFetchResult.m:1:
In file included from /Users/vsts/agent/2.141.1/work/1/s/node_modules/react-native-firebase/ios/RNFirebase/converters/RCTConvert+UIBackgroundFetchResult.h:1:
/Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:8:9: fatal error: could not build module 'QuartzCore'
#import <QuartzCore/QuartzCore.h>
 ~~~~~~~^
While building module 'UIKit' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:9:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h:8:9: fatal error: could not build module 'Darwin'
#import <Availability.h>
 ~~~~~~~^
While building module 'UIKit' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:9:
While building module 'CoreImage' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:11:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h:8:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h:10:10: fatal error: could not build module 'Darwin'
#include <TargetConditionals.h>
 ~~~~~~~~^
While building module 'UIKit' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:9:
While building module 'CoreImage' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:11:
While building module 'CoreVideo' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:10:
In file included from <module-includes>:1:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:16:10: fatal error: could not build module 'Darwin'
#include <TargetConditionals.h>
 ~~~~~~~~^
1 error generated.
While building module 'UIKit' imported from /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/BuildProductsPath/Release-iphoneos/include/React/RCTConvert.h:9:
While building module 'CoreImage' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:11:
While building module 'ImageIO' imported from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:11:
In file included from <module-includes>:1:
In file included from /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h:10:
/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h:11:10: fatal error: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
 ~~~~~~~~^
1 error generated.
3 errors generated.

** ARCHIVE FAILED **


The following build commands failed:
    CompileC /Users/vsts/Library/Developer/Xcode/DerivedData/example-fwheeetsuxlpjufwmtievksbmcik/Build/Intermediates.noindex/ArchiveIntermediates/example/IntermediateBuildFilesPath/RNFirebase.build/Release-iphoneos/RNFirebase.build/Objects-normal/armv7/RNFirebaseFunctions.o RNFirebase/functions/RNFirebaseFunctions.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
##[error]Error: /usr/bin/xcodebuild failed with return code: 65
##[section]Finishing: Xcode build (signed)
##[section]Starting: Xcode build (signed)
==============================================================================
Task         : Xcode
Description  : Build, test, or archive an Xcode workspace on macOS. Optionally package an app.
Version      : 4.130.0
Author       : Microsoft Corporation
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613730)
==============================================================================
##[section]Finishing: Xcode build (signed)
##[section]Starting: Install Apple provisioning profile
==============================================================================
Task         : Install Apple Provisioning Profile
Description  : Install an Apple provisioning profile required to build on a macOS agent
Version      : 0.124.0
Author       : Microsoft Corporation
Help         : 
==============================================================================
##[warning]Deleting provisioning profile: /Users/vsts/Library/MobileDevice/Provisioning Profiles/c8609a13-7e7c-496c-8664-ddb39b4c7076.mobileprovision
[command]/bin/rm -f /Users/vsts/Library/MobileDevice/Provisioning Profiles/c8609a13-7e7c-496c-8664-ddb39b4c7076.mobileprovision
##[section]Finishing: Install Apple provisioning profile
##[section]Starting: Install Apple certificate
==============================================================================
Task         : Install Apple Certificate
Description  : Install an Apple certificate required to build on a macOS agent
Version      : 0.125.0
Author       : Microsoft Corporation
Help         : 
==============================================================================
[command]/usr/bin/security delete-keychain /Users/vsts/agent/2.141.1/work/_temp/ios_signing_temp.keychain
##[section]Finishing: Install Apple certificate
##[section]Starting: Checkout
==============================================================================
Task         : Get sources
Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
Version      : 1.0.0
Author       : Microsoft
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
==============================================================================
Cleaning any cached credential from repository: accomplish (ExternalGit)
##[section]Finishing: Checkout
##[section]Finishing: Job

Most helpful comment

Yes @MD3XTER this is not an issue we can fix from AppCenter so :crossed_fingers: for the RN 0.58 release.

All 14 comments

Hey @ethanneff,

As we mentioned in the GitHub Issue template:

Please create issues only for problems specific to using the SDK for React Native.
If your issue is related to App Center build only (meaning no issue building locally) or CodePush, please create a ticket using the blue chat button on any page of the https://appcenter.ms portal instead.

Please contact us via intercom support on https://appcenter.ms portal instead. Thanks for your understanding.

@ethanneff hey, have you figured out how to fix this issue?

Nope. So far, both App Center and React-Native-Firebase are unwilling to fix the issue. https://github.com/invertase/react-native-firebase/issues/1667#issuecomment-441482840

I guess we have to wait for the new RN 0.58 release...

Yes @MD3XTER this is not an issue we can fix from AppCenter so :crossed_fingers: for the RN 0.58 release.

@ethanneff ever figure it out?

I can confirm that this problem still persists on the RN 0.58.5, Xcode 10.1 and RNF 5.2.2. It builds locally but fails during AppCenter build.

On Bitrise, you can pass in additional options to xcodebuild of -UseModernBuildSystem=NO. This forces it to use the legacy build system. Does AppCenter have this kind of configuration option?

If you set the project to build with the legacy build system, then it will also build on AppCenter. Looking at the logs, it seems like it's building with legacy build system, but it still fails even if it succeeds locally. I am afraid we will have to wait for the https://github.com/facebook/react-native/issues/19573 to get fixed which I don't think will happen before 0.59 release.

One workaround that I use now and I didn't actually know it's possible, is to archive locally your project then upload the .ipa to the AppCenter. It doesn't fix the build issue, but it still possible to get your build on AppCenter which for me is more important.

My RN project does not have an xcworkspace (not using cocoapods). Changes to "Project Settings" in Xcode do not get written to any of the project files.

Ideally, we could pass options to the xcodebuild command on AppCenter.

Maybe there is a way to do that, I haven't found it yet. I know you can run pre-build scripts, not sure if that will help tho.

It isn't currently configurable on AppCenter, but most CI platforms that support RN allow it (Circle, Bitrise)

Not sure if this is helpful, but I just changed my selected XCode version in the AppCenter build to pre-10 (9.4.1). Seemed to work great.

Hi, if there are still issues with App Center build today:

  • If this is only when using the App Center React Native SDK: please create a new issue using our template.
  • If this is a generic App Center build issue and not related to using the React Native SDK from this repository, please either create an issue on https://github.com/Microsoft/appcenter/issues or contact us on the chat support from any page on https://appcenter.ms.
Was this page helpful?
0 / 5 - 0 ratings