GitLiveApp / firebase-kotlin-sdk

A Kotlin-first SDK for Firebase
https://gitliveapp.github.io/firebase-kotlin-sdk/
Apache License 2.0
1.08k stars 153 forks source link

Undefined symbol: _OBJC_CLASS_$_ #568

Closed florianNgbala closed 1 week ago

florianNgbala commented 1 month ago

Hi , I am working on a KMP project (Android & iOS), and I've update to the version 1.13.0 (so I can upload ByteArray to firebase storage).

Since the update, I have theses errors from Xcode when trying to run my app on iOS :

Undefined symbol: _OBJC_CLASS_$_FIRPersistentCacheSettings
Undefined symbol: _OBJC_CLASS_$_FIRMemoryCacheSettings
Undefined symbol: _OBJC_CLASS_$_FIRMemoryEagerGCSettings
Undefined symbol: _OBJC_CLASS_$_FIRMemoryLRUGCSettings

Do you know what is going on here and how I can fix this issue ?

Thanks in advance 🙏

Daeda88 commented 1 month ago

Which ios firebase sdk have you linked to your project? On 1.13.0 it should be at 10.23.0. Older sdks do not yet have the new Settings implementation.

timhuang1018 commented 1 month ago

I ran into same error, @Daeda88 you mean the origin ios firebase sdk should be 10.23.0? how could we config them?

Daeda88 commented 1 month ago

Your own project should be linking the ios fb sdk (either through SPM or Cocoapods). The version being linked there should match this project.

timhuang1018 commented 1 month ago

I see, missed reading the part in README, thanks for explanation!