Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No known instance method for selector 'getLimitedUseTokenWithCompletion:' #7714

Closed
2 of 10 tasks
Bob-JZhao opened this issue Mar 29, 2024 · 1 comment
Closed
2 of 10 tasks
Labels
help: needs-triage Issue needs additional investigation/triaging. resolution: user Issue with users code or an issue that should be directed to Stack Overflow or the Discord server. type: bug New bug report

Comments

@Bob-JZhao
Copy link

Issue

I am try to use firebase app check, but after install the @react-native-firebase/app-check and start app from xCode, I always get this error. I was following the documentation.
image


Project Files

Javascript

Click To Expand

package.json:

# N/A

firebase.json for react-native-firebase v6:

  "@react-native-firebase/app": "^18.6.1",
    "@react-native-firebase/app-check": "^18.6.1",
    "@react-native-firebase/auth": "^18.6.1",
    "@react-native-firebase/functions": "^18.6.1",

iOS

Click To Expand

ios/Podfile:

  • I'm not using Pods
  • I'm using Pods and my Podfile looks like:
 rn_maps_path = '../node_modules/react-native-maps'
  pod 'react-native-google-maps', :path => rn_maps_path
  pod 'FirebaseAppCheck'
  config = use_native_modules!

  # Required by RNFirebase, see https://rnfirebase.io/#altering-cocoapods-to-use-frameworks.
  use_frameworks! :linkage => :static
  $RNFirebaseAsStaticFramework = true
  

AppDelegate.m:

#import "AppDelegate.h"
#import <Firebase.h>
#import "RNFBAppCheckModule.h"  
#import <React/RCTBundleURLProvider.h>
#import <React/RCTLinkingManager.h>

#import <GoogleMaps/GoogleMaps.h>
#import "ADURLProtocol.h"
#import "RSSwizzle.h"

#import <CoreLocation/CoreLocation.h>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
   [GMSServices provideAPIKey:KeyGoogle];
  self.moduleName = @"xxx";
  // You can add your custom initial props in the dictionary below.
  // They will be passed down to the ViewController used by React Native.
  self.initialProps = @{};
 
  
 [RNFBAppCheckModule sharedInstance];
 [FIRApp configure];
  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}


Android

Click To Expand

Have you converted to AndroidX?

  • my application is an AndroidX application?
  • I am using android/gradle.settings jetifier=true for Android compatibility?
  • I am using the NPM package jetifier for react-native compatibility?

android/build.gradle:

// N/A

android/app/build.gradle:

// N/A

android/settings.gradle:

// N/A

MainApplication.java:

// N/A

AndroidManifest.xml:

<!-- N/A -->


Environment

Click To Expand

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • react-native-firebase version you're using that has this issue:
    • e.g. ^18.6.1
  • Firebase module(s) you're using that has the issue:
    • e.g. Instance ID
  • Are you using TypeScript?
    • Y/N & VERSION


@Bob-JZhao Bob-JZhao added help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report labels Mar 29, 2024
@mikehardy
Copy link
Collaborator

Hi there! You are overriding the firebase-ios-sdk version which implies that you are responsible for checking compatibility, and it appears you have not done so - adopting a newer version of react-native-firebase that depends on a newer API in firebase-ios-sdk but you have not moved your overridden SDK dependency.

If you remove your firebase-ios-sdk version pin from your Podfile, or update it to a supported version, your build will work.

https://github.com/invertase/react-native-firebase/blob/main/CHANGELOG.md#1870-2023-11-28
#7424

Wow, looks like it was added all the way back in firebase-ios-sdk 10.9.0 https://firebase.google.com/support/release-notes/ios#app_check_4

Your firebase-ios-sdk is likely quite out of date

@mikehardy mikehardy added the resolution: user Issue with users code or an issue that should be directed to Stack Overflow or the Discord server. label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help: needs-triage Issue needs additional investigation/triaging. resolution: user Issue with users code or an issue that should be directed to Stack Overflow or the Discord server. type: bug New bug report
Projects
None yet
Development

No branches or pull requests

2 participants