firebase / firebase/firebase-ios-sdk

FirebaseFirestore gRPC 1.69 incompatible with kotlinx-rpc gRPC 1.74 on iOS

Open
#16,203 3 comments 0 reactions 1 assignee Claimed by @MarkDuckworth View on GitHub
api: firestore
Dominant language
C++
Stars
6.7k
Forks
1.8k
Avg merge
2d 14h
Merged PRs (30d)
72

Description

Hello, in my Kotlin Multiplatform project that uses both FirebaseFirestore (via CocoaPods but I can migrate to swift) and kotlinx-rpc (JetBrains' KMP gRPC library), linking the iOS app crashes at runtime with:

`kotlin.IllegalArgumentException: The gRPC iomgr is not running background threads`

The root cause is kotlinx-rpc 0.11.0-grpc-185 ships a prebuilt static library (libkgrpc.ios_simulator_arm64.a) that embeds gRPC 1.74.1.
FirebaseFirestore constrains gRPC to ~> 1.69.0.
When both are statically linked into the same binary, two incompatible versions of gRPC coexist. kotlinx-rpc 1.74 expects the Event Engine backend, but gRPC 1.69's iomgr gets resolved first at runtime and crash the app.

Can you please upgrade the gRPC dependency in FirebaseFirestore to >= 1.74. to allow FirebaseFirestore and kotlinx-rpc to coexist in the same iOS binary.

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.