RNFirebase core module was not found natively on iOS

有些话、适合烂在心里 提交于 2021-01-29 10:46:43

问题


AppDelegate.m

#import "Firebase.h"
#import "AppDelegate.h"

#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  [FIRApp configure];
  NSURL *jsCodeLocation;

  jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];

  RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
                                                      moduleName:@"kakashi"
                                               initialProperties:nil
                                                   launchOptions:launchOptions];
  rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];

  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  UIViewController *rootViewController = [UIViewController new];
  rootViewController.view = rootView;
  self.window.rootViewController = rootViewController;
  [self.window makeKeyAndVisible];
  return YES;
}

@end

Podfile:

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'my_app' do
  pod 'Firebase/Core'

end

Verified that Build phase/Link Binary with Libraries has libRNFirebase.a

I've also verified the $(inherited) is there for framework search paths.

Still getting error RNFirebase core module was not found natively on iOS with expo start or npm start

Can you please recommend how to approach this problem? Or any help with what to verify/ensure for this to work is much appreciated.

来源:https://stackoverflow.com/questions/52247120/rnfirebase-core-module-was-not-found-natively-on-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!