dpa99c / cordova-plugin-firebasex

Cordova plugin for Google Firebase
MIT License
570 stars 468 forks source link

Issue - headerValue() is unavailable in Swift: Use asyncHeaderValue() async ->String? instead. #898

Open Jason-NIU opened 1 week ago

Jason-NIU commented 1 week ago

Bug report

CHECKLIST

Current behavior:

  1. Upgraded Xcode to 16.0
  2. Upgraded Cordova-plugin-fire based to 17.0.0
  3. Pod update in iOS
  4. The below error is shown when building the iOS App

Expected behavior:

I don’t see the issue in previous version Steps to reproduce:

Screenshots

IMG_1342

Environment information

iOS build issue:

mikehardy commented 1 week ago

The firebase-ios-sdk team asserts that they have reverted the problematic change in Pod FirebaseCoreExtension in freshly released version 11.4.1, if you pod repo update and remove your Podfile.lock then pod install again...things might work for you?

MaximBelov commented 1 week ago

Workaround solution with https://www.npmjs.com/package/patch-package

1 add to plugin.xml

<pods use-frameworks="true">
...
                <pod name="FirebaseABTesting" spec="11.2.0"/>
                <pod name="FirebaseCoreInternal" spec="11.2.0"/>
                <pod name="FirebaseAuthInterop" spec="11.2.0"/>
                <pod name="FirebaseAppCheckInterop" spec="11.2.0"/>
                <pod name="FirebaseMessagingInterop" spec="11.2.0"/>
                <pod name="FirebaseCoreExtension" spec="11.2.0"/>
                <pod name="FirebaseSessions" spec="11.2.0"/>
                <pod name="FirebaseSharedSwift" spec="11.2.0"/>
                <pod name="FirebaseRemoteConfigInterop" spec="11.2.0"/>
....

2 Add In package.json "scripts": {

3 Create patch

npx patch-package cordova-plugin-firebasex
Jason-NIU commented 6 days ago

Thanks guys, much appreciated. I think pod repo update has fixed it for me. It suddenly stopped working few days ago. All good now. Thank you all for the response and support.