我是IOS应用程序开发的新手,我试图在MAC(虚拟框)上运行React本机应用程序,但是在启动屏幕后卡住了。
在报告导航器上显示以下消息。
2018-09-26 05:03:23.637243 + 0530页首横幅[56620:700325]-[I-ACS036002]启用了分析屏幕报告。调用+ [FIRAnalytics setScreenName:setScreenClass:]设置屏幕名称或覆盖默认屏幕类名称。若要禁用屏幕报告,请将Info.plist中的标志FirebaseScreenReportingEnabled设置为NO(布尔值)
2018-09-26 05:03:24.334073 + 0530页首横幅[56620:699937] + [CATransaction syncize]在事务内调用
2018-09-26 05:03:25.352 [info] [tid:main] [RCTCxxBridge.mm:216]初始化(父母:,执行者:(空))
2018-09-26 05:03:25.385767 + 0530 Leaderboard [56620:699937]初始化(父母:,执行者:(空))
2018-09-26 05:03:25.749 [info] [tid:main] [RCTRootView.m:293]正在运行的应用排行榜({
initialProps = {
};
rootTag = 1;
})
2018-09-26 05:03:25.831679 + 0530 Leaderboard [56620:699937]正在运行的应用程序排行榜({
initialProps = {
};
rootTag = 1;
})
2018-09-26 05:03:26.353502 + 0530 Leaderboard [56620:699937] *由于未捕获的异常'com.firebase.core'而终止了应用程序,原因:'[FIRApp configure];
(FirebaseApp.configure()
在Swift中)在您的项目中找不到有效的GoogleService-Info.plist。请从https://console.firebase.google.com/下载一个。”
* 第一个调用堆栈:
(
0 CoreFoundation 0x00000001052a91e6 例外预处理+ 294
1个libobjc.A.dylib 0x000000010371e031 objc_exception_throw + 48
2 CoreFoundation 0x000000010531e975 + [NSException提高:格式:] + 197
3页首横幅0x0000000101e80451 + [FIRApp配置] + 481
4页首横幅0x0000000101e7fb07-[AppDelegate应用程序:didFinishLaunchingWithOptions:] + 871
5 UIKit 0x0000000107ee96fb-[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 278
6 UIKit 0x0000000107eeb172-[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4123
7 UIKit 0x0000000107ef05cb-[UIApplication _runWithMainScene:transitionContext:completion:] + 1677
8 UIKit 0x00000001082b2f7e __111-[__ UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] _ block_invoke + 866
9 UIKit 0x0000000108685a39 + [_ UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
10 UIKit 0x00000001082b2bba-[__ UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 236
11 UIKit 0x00000001082b33db-[__ UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 675
12 UIKit 0x0000000108c24614 __82-[_ UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] _ block_invoke + 299
13 UIKit 0x0000000108c244ae-[_ UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 433
14 UIKit 0x000000010890875d __125-[_ UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] _ block_invoke + 221
15 UIKit 0x0000000108b034b7 _performActionsWithDelayForTransitionContext + 100
16 UIKit 0x0000000108908627-[_ UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 223
17 UIKit 0x00000001086850e0-[_ UICanvas场景:didUpdateWithDiff:transitionContext:完成:] + 392
18 UIKit 0x0000000107eeeeac-[UIApplication工作区:didCreateScene:withTransitionContext:completion:] + 515
19 UIKit 0x00000001084c1bcb-[UIApplicationSceneClientAgent场景:didInitializeWithEvent:完成:] + 361
20 FrontBoardServices 0x000000010e05a2f3-[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 331
21 FrontBoardServices 0x000000010e062cfa __56- [FBSWorkspace客户端:handleCreateScene:withCompletion:] _ block_invoke_2 + 225
22 libdispatch.dylib 0x000000010695a7ec _dispatch_client_callout + 8
23 libdispatch.dylib 0x000000010695fdb8 _dispatch_block_invoke_direct + 592
24 FrontBoardServices 0x000000010e08e470 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 24
25 FrontBoardServices 0x000000010e08e12e-[FBSSerialQueue _performNext] + 439
26 FrontBoardServices 0x000000010e08e68e-[FBSSerialQueue _performNextFromRunLoopSource] + 45
27 CoreFoundation 0x000000010524bbb1 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
28 CoreFoundation 0x00000001052304af __CFRunLoopDoSources0 + 271
29 CoreFoundation 0x000000010522fa6f __CFRunLoopRun + 1263
30 CoreFoundation 0x000000010522f30b CFRunLoopRunSpecific + 635
31 GraphicsServices 0x000000010d42ea73 GSEventRunModal + 62
32个UIKit 0x0000000107ef2057 UIApplicationMain + 159
33页首横幅广告0x0000000101e7fc90主+ 112
34 libdyld.dylib 0x000000010a98c955开始+ 1
35 ??? 0x0000000000000001 0x0 + 1
)
libc ++ abi.dylib:以类型为NSException的未捕获异常终止
(lldb)
答案 0 :(得分:1)
如果要在项目中使用Firebase,则应从Firebase控制台创建一个应用程序并进行配置。然后,您应该下载GoogleService-Info.plist
并复制到您的项目中。您可以在错误日志中清楚地看到这一点。