After iOS installation and I run react-native run-ios
, the build succeeded but In the simulator, my app can't open. It just open show the white screen and then instantly closed, no any error display.
If I remove these lines below from ios/[YOUR APP NAME]/AppDelegate.m
file the app can open normally.
#import <Firebase.h>
// ....
[FIRApp configure];
Podfile:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'AwesomeProject3' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for AwesomeProject3
# Required by RNFirebase
pod 'Firebase/Core', '~> 5.3.0'
target 'AwesomeProject3-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
target 'AwesomeProject3Tests' do
inherit! :search_paths
# Pods for testing
end
end
target 'AwesomeProject3-tvOS' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for AwesomeProject3-tvOS
end
React Native
version: "dependencies": {
"react": "16.5.0",
"react-native": "0.57.0"
"react-native-firebase": "^4.3.8",
"react-navigation": "^2.14.2"
}
React Native Firebase
Version: ^4.3.8Firebase
Module: analytics
Are you using typescript
? no
Loving react-native-firebase
? Please consider supporting them with any of the below:
React Native Firebase
and Invertase
on TwitterPlease can you open XCode and let us know what the crash is. Not much we can do without that I'm afraid.
@Ehesp Thank for the response. I have tried that. I think I don't see anything unusual in Xcode(just open it right?).
Please can you show me a Podfile and react-native version that you've done or an example project?
Maybe I just miss to configure something.
@dumpsayamrat Maybe try below pod code and let me know.
# The target name is most likely the name of your project.
platform :ios, '9.0'
target 'AwesomeProject3' do
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
'DevSupport',
'RCTText',
'RCTNetwork',
'RCTWebSocket',
'RCTAnimation',
]
# Explicitly include Yoga if you are using RN >= 0.42.0
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
# Third party deps podspec link
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
# Required by RNFirebase
pod 'Firebase/Core'
end
# Add new pods below this line
Did you placed the GoogleService-Info.plist to 'ios/[YOUR APP NAME]/' ?
And if you still getting errors, maybe some errors or logs would help me?
+1 i have the same issue as I described on closed issue #1617 it's urgent to me, i hope there are people can help me solve this problem
Please can you open XCode and let us know what the crash is. Not much we can do without that I'm afraid.
@Ehesp here is my xCode error log after the app terminating
2018-10-20 08:09:38.442152+0700 AppSewaSewa[19609:370376] - <AppMeasurement>[I-ACS036002] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
2018-10-20 08:09:40.906962+0700 AppSewaSewa[19609:370396] 5.9.0 - [Firebase/Core][I-COR000012] Could not locate configuration file: 'GoogleService-Info.plist'.
2018-10-20 08:09:40.908069+0700 AppSewaSewa[19609:370396] 5.9.0 - [Firebase/Core][I-COR000005] No app has been configured yet.
2018-10-20 08:09:41.064477+0700 AppSewaSewa[19609:370073] *** Terminating app due to uncaught exception 'com.firebase.core', reason: '`[FIRApp configure];` (`FirebaseApp.configure()` in Swift) could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010654a1e6 __exceptionPreprocess + 294
1 libobjc.A.dylib 0x0000000104e36031 objc_exception_throw + 48
2 CoreFoundation 0x00000001065bf975 +[NSException raise:format:] + 197
3 AppSewaSewa 0x00000001023ec5a6 +[FIRApp configure] + 470
4 AppSewaSewa 0x00000001023eba24 -[AppDelegate application:didFinishLaunchingWithOptions:] + 212
5 UIKit 0x0000000108a996fb -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 278
6 UIKit 0x0000000108a9b172 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4123
7 UIKit 0x0000000108aa05cb -[UIApplication _runWithMainScene:transitionContext:completion:] + 1677
8 UIKit 0x0000000108e62f7e __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 866
9 UIKit 0x0000000109235a39 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
10 UIKit 0x0000000108e62bba -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 236
11 UIKit 0x0000000108e633db -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 675
12 UIKit 0x00000001097d4614 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 299
13 UIKit 0x00000001097d44ae -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 433
14 UIKit 0x00000001094b875d __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 221
15 UIKit 0x00000001096b34b7 _performActionsWithDelayForTransitionContext + 100
16 UIKit 0x00000001094b8627 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 223
17 UIKit 0x00000001092350e0 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
18 UIKit 0x0000000108a9eeac -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 515
19 UIKit 0x0000000109071bcb -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361
20 FrontBoardServices 0x000000010edaa2f3 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 331
21 FrontBoardServices 0x000000010edb2cfa __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 225
22 libdispatch.dylib 0x000000010b65f7ec _dispatch_client_callout + 8
23 libdispatch.dylib 0x000000010b664db8 _dispatch_block_invoke_direct + 592
24 FrontBoardServices 0x000000010edde470 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
25 FrontBoardServices 0x000000010edde12e -[FBSSerialQueue _performNext] + 439
26 FrontBoardServices 0x000000010edde68e -[FBSSerialQueue _performNextFromRunLoopSource] + 45
27 CoreFoundation 0x00000001064ecbb1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
28 CoreFoundation 0x00000001064d14af __CFRunLoopDoSources0 + 271
29 CoreFoundation 0x00000001064d0a6f __CFRunLoopRun + 1263
30 CoreFoundation 0x00000001064d030b CFRunLoopRunSpecific + 635
31 GraphicsServices 0x000000010e17ea73 GSEventRunModal + 62
32 UIKit 0x0000000108aa2057 UIApplicationMain + 159
33 AppSewaSewa 0x00000001023ebe2f main + 111
34 libdyld.dylib 0x000000010b6dc955 start + 1
35 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
After searching for others existing issue, I found what my mistake is, I was adding GoogleService-Info.plist through finder, in Xcode it's not listed in project files, and I realize I should add it through Xcode directly, it's works now and not terminating anymore when running the app
Hello 馃憢, this issue has been automatically marked as stale because it has not had activity for quite some time. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.
Open Xcode and open AppDelagate.m
import this
#import
add in starting of didFinishLaunchingWithOptions [FIRApp configure];
for example
@implementation AppDelegate
Most helpful comment
After searching for others existing issue, I found what my mistake is, I was adding GoogleService-Info.plist through finder, in Xcode it's not listed in project files, and I realize I should add it through Xcode directly, it's works now and not terminating anymore when running the app