iOS build failed (Firebase native SDK)

IOS development build fails on EAS after integrating Firebase native SDK using this doc and this.

Build & Integration works perfectly on Android but fails on IOS.

workflow : managed
eas-cli: 2.1.0
sdk : 45.0.5


⚠️  (/Users/expo/workingdir/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/SingletonStackTrace.dia:1:1)

CompileC /Users/expo/workingdir/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/Singleton.o /Us...
^ Could not read serialized diagnostics file: error(in target 'RCT-Folly' from project 'Pods')
(warning truncated)

❌  (ios/Pods/RCT-Folly/folly/portability/FmtCompile.h:19:10)

  17 | #pragma once
  18 | 
> 19 | #include <fmt/compile.h>
     |          ^ 'fmt/compile.h' file not found
  20 | 
  21 | #if !defined(FMT_COMPILE)
  22 | 
› Compiling react-native Pods/RCT-Folly » SimpleLoopController.cpp
▸ ** BUILD FAILED **
▸ The following build commands failed:
▸ 	CompileC /Users/expo/workingdir/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/Singleton.o /Users/expo/workingdir/build/ios/Pods/RCT-Folly/folly/Singleton.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
▸ (1 failure)
2022-12-11 06:27:26.001 xcodebuild[4319:13124] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-12-11 06:27:26.002 xcodebuild[4319:13124] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-12-11 06:27:26.063 xcodebuild[4319:13124] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.}
2022-12-11 06:27:26.063 xcodebuild[4319:13124] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts
2022-12-11 06:27:26.063 xcodebuild[4319:13124] XType: unable to make a connection to the font daemon!
2022-12-11 06:27:26.063 xcodebuild[4319:13124] XType: XTFontStaticRegistry is enabled as fontd is not available.
** BUILD FAILED **
The following build commands failed:
	CompileC /Users/expo/workingdir/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/Singleton.o /Users/expo/workingdir/build/ios/Pods/RCT-Folly/folly/Singleton.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
(1 failure)

cc @wodin

Hi,

This thread suggests that a fix for this issue was put in around React Native 69.1, meaning that you may have better luck with SDK 46 and the latest version of React Native Firebase (which requires the use_frameworks build config). Alternatively, you could try an older version of React Native Firebase, though it would take some work to figure out what the last compatible version is.

2 Likes

Hi, I upgraded my project to SDK 46, as you suggested, and it solved the error (Thanks).

But I ran into another error; I was getting the error below.

(node_modules/react-native/React/Base/RCTBridgeModule.h:182:1)

  180 |  * when it initializes the module.
  181 |  */
> 182 | @property (nonatomic, strong, readonly) dispatch_queue_t methodQueue;
      | ^ property with 'retain ' attribute must be of object type
  183 | 
  184 | /**
  185 |  * Wrap the parameter line of your method implementation with this macro to

❌  (node_modules/react-native/React/Base/RCTModuleData.h:101:1)

   99 |  * queue and the module itself if they have not already been created.
  100 |  */
> 101 | @property (nonatomic, strong, readonly) dispatch_queue_t methodQueue;
      | ^ property with 'retain ' attribute must be of object type
  102 | 
  103 | /**
  104 |  * Whether the receiver has a valid `instance` which implements -batchDidComplete.

❌  (node_modules/react-native/Libraries/WebSocket/RCTReconnectingWebSocket.h:33:1)

  31 | - (instancetype)initWithURL:(NSURL *)url __deprecated_msg("Use initWithURL:queue: instead");
  32 | /** @brief Must be set before -start to have effect */
> 33 | @property (nonatomic, strong) dispatch_queue_t delegateDispatchQueue __deprecated_msg("Use initWithURL:queue: instead");
     | ^ property with 'retain ' attribute must be of object type
  34 | 
  35 | @end
  36 | 

I tried using a lower version of React Native Firebase, but it is still the same.

I decided to upgrade to SDK 47, and that solved the problem.

Thanks a lot for the help.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.