ios - 在 iOS 上原生找不到 RNFirebase 核心模块
问题描述
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
播客文件:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'my_app' do
pod 'Firebase/Core'
end
已验证Build phase/Link Binary with Libraries
具有 libRNFirebase.a
我还验证了$(inherited)
是否存在框架搜索路径。
仍然出现RNFirebase core module was not found natively on iOS
错误expo start
或npm start
你能推荐如何解决这个问题吗?或任何有关验证/确保其工作的帮助都非常感谢。
解决方案
推荐阅读
- flask - Flask 服务于 Vue.js 包文件。更改时重新编译?
- jquery - 在 Jquery 中返回元素
- javascript - 将范围输入转换为 int 或 Format 以返回美元
- javascript - 在 Node.js/Express.js 中,如何将 JSON 对象从服务器传输到客户端?
- jsonschema - JSONSchema 本地自引用(递归)
- python - 在python中将不规则时间序列转换为每小时数据并具有正态分布
- python - Python:数组和 print() 格式
- python - 使 2 x 2 板居中
- haskell - 为什么在这个表达式中冒号是右结合的?
- typescript - 使用 Object.defineProperty 动态创建的类型检查属性