iOS First-run sometimes crash

 "react": "16.0.0-alpha.12",
 "react-native": "^0.45.1",
 "react-native-firebase": "1.1.1",

Sometimes when first run on iOS the app crashes. Doesn’t always crash so uninstall and install it happens about 40%% of the time. Remove the firebase init and setup and no crashes anymore.
NOTE: I’m only using Push Notifications

main.m
libc++abi.dylib: terminating with uncaught exception of type NSException
Thread 1: signal SIGABRT

int main(int argc, char * argv[]) {
  @autoreleasepool {
    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); <!-- crash here
  }
}

screen shot 2017-06-21 at 10 32 59

If I remove everything and only adds firebase.messaging().requestPermissions() it crashes as well (note; I’ve tried adding getInitialNotification, onMessage, getToken as well).

var self = this;
this._firebase = RNFirebase.initializeApp({
   debug: false
});
if(Platform.OS==="ios"){
    self._firebase.messaging().requestPermissions().then((item)=>{
      console.log("ios got permission",item.granted)
      //if(item.granted) self._pushSetup();
    }).catch(function(error) {
      console.log("catch something",error);
    });
  }
  else {
    //this._pushSetup();
  }
}

Strange thing is that it comes after a while. And at different time. Can it have something to do with getting the token?

CRASH EXAMPLE 1

2017-06-21 10:39:46.158 DEBUG CalabashServer:252 | Creating the server: <LPHTTPServer: 0x170151f60>
2017-06-21 10:39:46.158 DEBUG CalabashServer:253 | Calabash iOS server version: CALABASH VERSION: 0.20.4
2017-06-21 10:39:46.158 DEBUG CalabashServer:256 | App Base SDK: iphoneos10.3
2017-06-21 10:39:46.158 DEBUG CalabashServer:288 | IPHONE_SIMULATOR_ROOT: (null)
2017-06-21 10:39:46.161 DEBUG CalabashServer:274 | Calabash iOS server is listening on: 192.168.99.112 port 37265
2017-06-21 10:39:46.331 DEBUG LPWKWebViewRuntimeLoader:221 | WKWebView successfully implemented LPWebViewProtocol
2017-06-21 10:39:46.712 Association[3954] <Notice> [Firebase/Crash][I-CRA000004] Successfully initialized
2017-06-21 10:39:46.731 Association[3954] <Notice> [Firebase/Analytics][I-ACS023007] Firebase Analytics v.4001000 started
2017-06-21 10:39:46.731 Association[3954] <Notice> [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2017-06-21 10:39:46.732 Association[3954] <Notice> [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
2017-06-21 10:39:46.755 Association[3954] <Notice> [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
2017-06-21 10:39:47.113 [info][tid:main][RCTCxxBridge.mm:184] Initializing <RCTCxxBridge: 0x1701d10d0> (parent: <RCTBridge: 0x1700aeac0>, executor: (null))
2017-06-21 10:39:47.123 [warn][tid:main][RCTBridge.m:114] Class RCTCxxModule was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2017-06-21 10:39:47.139 [info][tid:main][RCTRootView.m:302] Running application Association ({
	initialProps =     {
	};
	rootTag = 1;
})
2017-06-21 10:39:47.628 Association[3954] <Warning> [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2017-06-21 10:39:47.631 Association[3954] <Notice> [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled
2017-06-21 10:39:47.779 [warn][tid:com.facebook.React.JavaScript] Warning: PropTypes has been moved to a separate package. Accessing React.PropTypes is no longer supported and will be removed completely in React 16. Use the prop-types package on npm instead. (https://fb.me/migrating-from-react-proptypes)
2017-06-21 10:39:47.816 [warn][tid:com.facebook.React.JavaScript] Warning: React.createClass is no longer supported. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement. (https://fb.me/migrating-from-react-create-class)
2017-06-21 10:39:47.976 [warn][tid:com.facebook.React.JavaScript] Warning: Failed prop type: Invalid prop `transform` of type `string` supplied to `G`, expected `object`.
	in G (at index.js:10)
2017-06-21 10:39:47.979 [warn][tid:com.facebook.React.JavaScript] Warning: Failed prop type: Invalid prop `transform` of type `string` supplied to `Path`, expected `object`.
	in Path (at index.js:27)
2017-06-21 10:39:48.005 [warn][tid:com.facebook.React.JavaScript] Warning: View.propTypes has been deprecated and will be removed in a future version of ReactNative. Use ViewPropTypes instead.
2017-06-21 10:39:48.035 [info][tid:com.facebook.React.JavaScript] 'CONFIG', { URL_VERSION: 'https://xxx.yyy.se/apps/configurationservice.svc/configuration/',
  URL_API: 'https://xxx.yyy.se/' }
2017-06-21 10:39:48.038 [info][tid:com.facebook.React.JavaScript] Running application "Association" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
2017-06-21 10:39:57.880 [info][tid:com.facebook.React.JavaScript] 'app@getLocale:status', 200
2017-06-21 10:39:58.001 [info][tid:com.facebook.React.JavaScript] INVALIDATE STARTUP VALUES
2017-06-21 10:39:58.237 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageVersion'
2017-06-21 10:39:58.315 [info][tid:com.facebook.React.JavaScript] 'app state changed', 'inactive'
2017-06-21 10:40:03.222 [info][tid:com.facebook.React.JavaScript] 'getVersion@status', 200
2017-06-21 10:40:03.782 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageLoading'
2017-06-21 10:40:04.049 [info][tid:com.facebook.React.JavaScript] 'association@onSubClickGoto, ', 'None', 'Outside'
2017-06-21 10:40:04.051 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageUnAuthorized'
2017-06-21 10:40:04.176 [warn][tid:com.facebook.React.JavaScript] Warning: checkPropTypes has been moved to a separate package. Accessing React.checkPropTypes is no longer supported and will be removed completely in React 16. Use the prop-types package on npm instead. (https://fb.me/migrating-from-react-proptypes)
2017-06-21 10:40:04.238 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageRegister'
2017-06-21 10:40:04.435 [info][tid:com.facebook.React.JavaScript] OnePassword app is installed and ready!
2017-06-21 10:40:06.333 Association[3954] <Error> [Firebase/InstanceID][I-IID003009] Failed to fetch default token Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={_kCFStreamErrorCodeKey=-9806, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, NSUnderlyingError=0x170248df0 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, _kCFNetworkCFStreamSSLErrorOriginalValue=-9806, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9806}}, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://device-provisioning.googleapis.com/checkin, NSErrorFailingURLStringKey=https://device-provisioning.googleapis.com/checkin, _kCFStreamErrorDomainKey=3}
2017-06-21 10:40:07.645 [info][tid:com.facebook.React.JavaScript] 'app state changed', 'active'


HERE I CLICK TO ALERT TO ALLOW PUSH

2017-06-21 10:40:07.645 [info][tid:com.facebook.React.JavaScript] App has come to the foreground!
2017-06-21 10:40:07.675 [info][tid:com.facebook.React.JavaScript] 'ios got permission', true
libc++abi.dylib: terminating with uncaught exception of type NSException

CRASH EXAMPLE 2

2017-06-21 10:44:49.705 DEBUG CalabashServer:252 | Creating the server: <LPHTTPServer: 0x17014f780>
2017-06-21 10:44:49.706 DEBUG CalabashServer:253 | Calabash iOS server version: CALABASH VERSION: 0.20.4
2017-06-21 10:44:49.706 DEBUG CalabashServer:256 | App Base SDK: iphoneos10.3
2017-06-21 10:44:49.706 DEBUG CalabashServer:288 | IPHONE_SIMULATOR_ROOT: (null)
2017-06-21 10:44:49.710 DEBUG CalabashServer:274 | Calabash iOS server is listening on: 192.168.99.112 port 37265
2017-06-21 10:44:49.907 DEBUG LPWKWebViewRuntimeLoader:221 | WKWebView successfully implemented LPWebViewProtocol
2017-06-21 10:44:50.362 Association[3961] <Notice> [Firebase/Crash][I-CRA000004] Successfully initialized
2017-06-21 10:44:50.405 Association[3961] <Notice> [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
2017-06-21 10:44:50.459 Association[3961] <Notice> [Firebase/Analytics][I-ACS023007] Firebase Analytics v.4001000 started
2017-06-21 10:44:50.459 Association[3961] <Notice> [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2017-06-21 10:44:50.461 Association[3961] <Notice> [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
2017-06-21 10:44:50.779 [info][tid:main][RCTCxxBridge.mm:184] Initializing <RCTCxxBridge: 0x1741c7cb0> (parent: <RCTBridge: 0x1702a1860>, executor: (null))
2017-06-21 10:44:50.790 [warn][tid:main][RCTBridge.m:114] Class RCTCxxModule was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2017-06-21 10:44:50.808 [info][tid:main][RCTRootView.m:302] Running application Association ({
	initialProps =     {
	};
	rootTag = 1;
})
2017-06-21 10:44:51.486 Association[3961] <Warning> [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2017-06-21 10:44:51.487 Association[3961] <Notice> [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled
2017-06-21 10:44:51.494 [warn][tid:com.facebook.React.JavaScript] Warning: PropTypes has been moved to a separate package. Accessing React.PropTypes is no longer supported and will be removed completely in React 16. Use the prop-types package on npm instead. (https://fb.me/migrating-from-react-proptypes)
2017-06-21 10:44:51.534 [warn][tid:com.facebook.React.JavaScript] Warning: React.createClass is no longer supported. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement. (https://fb.me/migrating-from-react-create-class)
2017-06-21 10:44:51.701 [warn][tid:com.facebook.React.JavaScript] Warning: Failed prop type: Invalid prop `transform` of type `string` supplied to `G`, expected `object`.
	in G (at index.js:10)
2017-06-21 10:44:51.704 [warn][tid:com.facebook.React.JavaScript] Warning: Failed prop type: Invalid prop `transform` of type `string` supplied to `Path`, expected `object`.
	in Path (at index.js:27)
2017-06-21 10:44:51.731 [warn][tid:com.facebook.React.JavaScript] Warning: View.propTypes has been deprecated and will be removed in a future version of ReactNative. Use ViewPropTypes instead.
2017-06-21 10:44:51.768 [info][tid:com.facebook.React.JavaScript] Running application "Association" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
2017-06-21 10:44:52.601 [info][tid:com.facebook.React.JavaScript] 'app@getLocale:status', 200
2017-06-21 10:44:52.724 [info][tid:com.facebook.React.JavaScript] INVALIDATE STARTUP VALUES
2017-06-21 10:44:52.963 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageVersion'
2017-06-21 10:44:53.049 [info][tid:com.facebook.React.JavaScript] 'app state changed', 'inactive'
2017-06-21 10:44:53.835 [info][tid:com.facebook.React.JavaScript] 'getVersion@status', 200
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

CRASH EXAMPLE 3

2017-06-21 10:49:30.993 DEBUG CalabashServer:252 | Creating the server: <LPHTTPServer: 0x170153820>
2017-06-21 10:49:30.993 DEBUG CalabashServer:253 | Calabash iOS server version: CALABASH VERSION: 0.20.4
2017-06-21 10:49:30.994 DEBUG CalabashServer:256 | App Base SDK: iphoneos10.3
2017-06-21 10:49:30.994 DEBUG CalabashServer:288 | IPHONE_SIMULATOR_ROOT: (null)
2017-06-21 10:49:31.003 DEBUG CalabashServer:274 | Calabash iOS server is listening on: 192.168.99.112 port 37265
2017-06-21 10:49:31.237 DEBUG LPWKWebViewRuntimeLoader:221 | WKWebView successfully implemented LPWebViewProtocol
2017-06-21 10:49:31.715 Association[3975] <Notice> [Firebase/Crash][I-CRA000004] Successfully initialized
2017-06-21 10:49:31.738 Association[3975] <Notice> [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
2017-06-21 10:49:31.750 Association[3975] <Notice> [Firebase/Analytics][I-ACS023007] Firebase Analytics v.4001000 started
2017-06-21 10:49:31.750 Association[3975] <Notice> [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2017-06-21 10:49:31.753 Association[3975] <Notice> [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
2017-06-21 10:49:31.892 [info][tid:main][RCTCxxBridge.mm:184] Initializing <RCTCxxBridge: 0x1703c1c20> (parent: <RCTBridge: 0x1740a7c20>, executor: (null))
2017-06-21 10:49:31.905 [warn][tid:main][RCTBridge.m:114] Class RCTCxxModule was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2017-06-21 10:49:31.931 [info][tid:main][RCTRootView.m:302] Running application Association ({
	initialProps =     {
	};
	rootTag = 1;
})
2017-06-21 10:49:32.711 [warn][tid:com.facebook.React.JavaScript] Warning: PropTypes has been moved to a separate package. Accessing React.PropTypes is no longer supported and will be removed completely in React 16. Use the prop-types package on npm instead. (https://fb.me/migrating-from-react-proptypes)
2017-06-21 10:49:32.746 [warn][tid:com.facebook.React.JavaScript] Warning: React.createClass is no longer supported. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement. (https://fb.me/migrating-from-react-create-class)
2017-06-21 10:49:32.910 [warn][tid:com.facebook.React.JavaScript] Warning: Failed prop type: Invalid prop `transform` of type `string` supplied to `G`, expected `object`.
	in G (at index.js:10)
2017-06-21 10:49:32.912 [warn][tid:com.facebook.React.JavaScript] Warning: Failed prop type: Invalid prop `transform` of type `string` supplied to `Path`, expected `object`.
	in Path (at index.js:27)
2017-06-21 10:49:32.938 [warn][tid:com.facebook.React.JavaScript] Warning: View.propTypes has been deprecated and will be removed in a future version of ReactNative. Use ViewPropTypes instead.
2017-06-21 10:49:32.969 [info][tid:com.facebook.React.JavaScript] Running application "Association" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
2017-06-21 10:49:33.182 Association[3975] <Warning> [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2017-06-21 10:49:33.182 Association[3975] <Notice> [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled
2017-06-21 10:49:44.279 [info][tid:com.facebook.React.JavaScript] 'app@getLocale:status', 200
2017-06-21 10:49:44.352 [info][tid:com.facebook.React.JavaScript] INVALIDATE STARTUP VALUES
2017-06-21 10:49:44.503 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageVersion'
2017-06-21 10:49:44.590 [info][tid:com.facebook.React.JavaScript] 'app state changed', 'inactive'
2017-06-21 10:49:50.267 [info][tid:com.facebook.React.JavaScript] 'getVersion@status', 200
2017-06-21 10:49:50.832 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageLoading'
2017-06-21 10:49:51.101 [info][tid:com.facebook.React.JavaScript] 'association@onSubClickGoto, ', 'None', 'Outside'
2017-06-21 10:49:51.104 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageUnAuthorized'
2017-06-21 10:49:51.235 [warn][tid:com.facebook.React.JavaScript] Warning: checkPropTypes has been moved to a separate package. Accessing React.checkPropTypes is no longer supported and will be removed completely in React 16. Use the prop-types package on npm instead. (https://fb.me/migrating-from-react-proptypes)
2017-06-21 10:49:51.292 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageRegister'
2017-06-21 10:49:51.482 [info][tid:com.facebook.React.JavaScript] OnePassword app is installed and ready!
2017-06-21 10:50:07.595 [info][tid:com.facebook.React.JavaScript] 'app state changed', 'active'

	CONFIRM ALERT HERE

2017-06-21 10:50:07.595 [info][tid:com.facebook.React.JavaScript] App has come to the foreground!
2017-06-21 10:50:07.629 [info][tid:com.facebook.React.JavaScript] 'ios got permission', true

Author: Fantashit

1 thought on “iOS First-run sometimes crash

  1. Dear @fbacker and @Ehesp

    I am facing that same problem, if i add this line [FIRApp configure] in AppDelegate.m file my app getting crashed.

    kindly give your suggestion.

    Any updates? Facing the same issue…

Comments are closed.

iOS First-run sometimes crash

 "react": "16.0.0-alpha.12",
 "react-native": "^0.45.1",
 "react-native-firebase": "1.1.1",

Sometimes when first run on iOS the app crashes. Doesn’t always crash so uninstall and install it happens about 40%% of the time. Remove the firebase init and setup and no crashes anymore.
NOTE: I’m only using Push Notifications

main.m
libc++abi.dylib: terminating with uncaught exception of type NSException
Thread 1: signal SIGABRT

int main(int argc, char * argv[]) {
  @autoreleasepool {
    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); <!-- crash here
  }
}

screen shot 2017-06-21 at 10 32 59

If I remove everything and only adds firebase.messaging().requestPermissions() it crashes as well (note; I’ve tried adding getInitialNotification, onMessage, getToken as well).

var self = this;
this._firebase = RNFirebase.initializeApp({
   debug: false
});
if(Platform.OS==="ios"){
    self._firebase.messaging().requestPermissions().then((item)=>{
      console.log("ios got permission",item.granted)
      //if(item.granted) self._pushSetup();
    }).catch(function(error) {
      console.log("catch something",error);
    });
  }
  else {
    //this._pushSetup();
  }
}

Strange thing is that it comes after a while. And at different time. Can it have something to do with getting the token?

CRASH EXAMPLE 1

2017-06-21 10:39:46.158 DEBUG CalabashServer:252 | Creating the server: <LPHTTPServer: 0x170151f60>
2017-06-21 10:39:46.158 DEBUG CalabashServer:253 | Calabash iOS server version: CALABASH VERSION: 0.20.4
2017-06-21 10:39:46.158 DEBUG CalabashServer:256 | App Base SDK: iphoneos10.3
2017-06-21 10:39:46.158 DEBUG CalabashServer:288 | IPHONE_SIMULATOR_ROOT: (null)
2017-06-21 10:39:46.161 DEBUG CalabashServer:274 | Calabash iOS server is listening on: 192.168.99.112 port 37265
2017-06-21 10:39:46.331 DEBUG LPWKWebViewRuntimeLoader:221 | WKWebView successfully implemented LPWebViewProtocol
2017-06-21 10:39:46.712 Association[3954] <Notice> [Firebase/Crash][I-CRA000004] Successfully initialized
2017-06-21 10:39:46.731 Association[3954] <Notice> [Firebase/Analytics][I-ACS023007] Firebase Analytics v.4001000 started
2017-06-21 10:39:46.731 Association[3954] <Notice> [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2017-06-21 10:39:46.732 Association[3954] <Notice> [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
2017-06-21 10:39:46.755 Association[3954] <Notice> [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
2017-06-21 10:39:47.113 [info][tid:main][RCTCxxBridge.mm:184] Initializing <RCTCxxBridge: 0x1701d10d0> (parent: <RCTBridge: 0x1700aeac0>, executor: (null))
2017-06-21 10:39:47.123 [warn][tid:main][RCTBridge.m:114] Class RCTCxxModule was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2017-06-21 10:39:47.139 [info][tid:main][RCTRootView.m:302] Running application Association ({
	initialProps =     {
	};
	rootTag = 1;
})
2017-06-21 10:39:47.628 Association[3954] <Warning> [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2017-06-21 10:39:47.631 Association[3954] <Notice> [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled
2017-06-21 10:39:47.779 [warn][tid:com.facebook.React.JavaScript] Warning: PropTypes has been moved to a separate package. Accessing React.PropTypes is no longer supported and will be removed completely in React 16. Use the prop-types package on npm instead. (https://fb.me/migrating-from-react-proptypes)
2017-06-21 10:39:47.816 [warn][tid:com.facebook.React.JavaScript] Warning: React.createClass is no longer supported. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement. (https://fb.me/migrating-from-react-create-class)
2017-06-21 10:39:47.976 [warn][tid:com.facebook.React.JavaScript] Warning: Failed prop type: Invalid prop `transform` of type `string` supplied to `G`, expected `object`.
	in G (at index.js:10)
2017-06-21 10:39:47.979 [warn][tid:com.facebook.React.JavaScript] Warning: Failed prop type: Invalid prop `transform` of type `string` supplied to `Path`, expected `object`.
	in Path (at index.js:27)
2017-06-21 10:39:48.005 [warn][tid:com.facebook.React.JavaScript] Warning: View.propTypes has been deprecated and will be removed in a future version of ReactNative. Use ViewPropTypes instead.
2017-06-21 10:39:48.035 [info][tid:com.facebook.React.JavaScript] 'CONFIG', { URL_VERSION: 'https://xxx.yyy.se/apps/configurationservice.svc/configuration/',
  URL_API: 'https://xxx.yyy.se/' }
2017-06-21 10:39:48.038 [info][tid:com.facebook.React.JavaScript] Running application "Association" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
2017-06-21 10:39:57.880 [info][tid:com.facebook.React.JavaScript] 'app@getLocale:status', 200
2017-06-21 10:39:58.001 [info][tid:com.facebook.React.JavaScript] INVALIDATE STARTUP VALUES
2017-06-21 10:39:58.237 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageVersion'
2017-06-21 10:39:58.315 [info][tid:com.facebook.React.JavaScript] 'app state changed', 'inactive'
2017-06-21 10:40:03.222 [info][tid:com.facebook.React.JavaScript] 'getVersion@status', 200
2017-06-21 10:40:03.782 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageLoading'
2017-06-21 10:40:04.049 [info][tid:com.facebook.React.JavaScript] 'association@onSubClickGoto, ', 'None', 'Outside'
2017-06-21 10:40:04.051 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageUnAuthorized'
2017-06-21 10:40:04.176 [warn][tid:com.facebook.React.JavaScript] Warning: checkPropTypes has been moved to a separate package. Accessing React.checkPropTypes is no longer supported and will be removed completely in React 16. Use the prop-types package on npm instead. (https://fb.me/migrating-from-react-proptypes)
2017-06-21 10:40:04.238 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageRegister'
2017-06-21 10:40:04.435 [info][tid:com.facebook.React.JavaScript] OnePassword app is installed and ready!
2017-06-21 10:40:06.333 Association[3954] <Error> [Firebase/InstanceID][I-IID003009] Failed to fetch default token Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={_kCFStreamErrorCodeKey=-9806, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, NSUnderlyingError=0x170248df0 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, _kCFNetworkCFStreamSSLErrorOriginalValue=-9806, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9806}}, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://device-provisioning.googleapis.com/checkin, NSErrorFailingURLStringKey=https://device-provisioning.googleapis.com/checkin, _kCFStreamErrorDomainKey=3}
2017-06-21 10:40:07.645 [info][tid:com.facebook.React.JavaScript] 'app state changed', 'active'


HERE I CLICK TO ALERT TO ALLOW PUSH

2017-06-21 10:40:07.645 [info][tid:com.facebook.React.JavaScript] App has come to the foreground!
2017-06-21 10:40:07.675 [info][tid:com.facebook.React.JavaScript] 'ios got permission', true
libc++abi.dylib: terminating with uncaught exception of type NSException

CRASH EXAMPLE 2

2017-06-21 10:44:49.705 DEBUG CalabashServer:252 | Creating the server: <LPHTTPServer: 0x17014f780>
2017-06-21 10:44:49.706 DEBUG CalabashServer:253 | Calabash iOS server version: CALABASH VERSION: 0.20.4
2017-06-21 10:44:49.706 DEBUG CalabashServer:256 | App Base SDK: iphoneos10.3
2017-06-21 10:44:49.706 DEBUG CalabashServer:288 | IPHONE_SIMULATOR_ROOT: (null)
2017-06-21 10:44:49.710 DEBUG CalabashServer:274 | Calabash iOS server is listening on: 192.168.99.112 port 37265
2017-06-21 10:44:49.907 DEBUG LPWKWebViewRuntimeLoader:221 | WKWebView successfully implemented LPWebViewProtocol
2017-06-21 10:44:50.362 Association[3961] <Notice> [Firebase/Crash][I-CRA000004] Successfully initialized
2017-06-21 10:44:50.405 Association[3961] <Notice> [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
2017-06-21 10:44:50.459 Association[3961] <Notice> [Firebase/Analytics][I-ACS023007] Firebase Analytics v.4001000 started
2017-06-21 10:44:50.459 Association[3961] <Notice> [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2017-06-21 10:44:50.461 Association[3961] <Notice> [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
2017-06-21 10:44:50.779 [info][tid:main][RCTCxxBridge.mm:184] Initializing <RCTCxxBridge: 0x1741c7cb0> (parent: <RCTBridge: 0x1702a1860>, executor: (null))
2017-06-21 10:44:50.790 [warn][tid:main][RCTBridge.m:114] Class RCTCxxModule was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2017-06-21 10:44:50.808 [info][tid:main][RCTRootView.m:302] Running application Association ({
	initialProps =     {
	};
	rootTag = 1;
})
2017-06-21 10:44:51.486 Association[3961] <Warning> [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2017-06-21 10:44:51.487 Association[3961] <Notice> [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled
2017-06-21 10:44:51.494 [warn][tid:com.facebook.React.JavaScript] Warning: PropTypes has been moved to a separate package. Accessing React.PropTypes is no longer supported and will be removed completely in React 16. Use the prop-types package on npm instead. (https://fb.me/migrating-from-react-proptypes)
2017-06-21 10:44:51.534 [warn][tid:com.facebook.React.JavaScript] Warning: React.createClass is no longer supported. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement. (https://fb.me/migrating-from-react-create-class)
2017-06-21 10:44:51.701 [warn][tid:com.facebook.React.JavaScript] Warning: Failed prop type: Invalid prop `transform` of type `string` supplied to `G`, expected `object`.
	in G (at index.js:10)
2017-06-21 10:44:51.704 [warn][tid:com.facebook.React.JavaScript] Warning: Failed prop type: Invalid prop `transform` of type `string` supplied to `Path`, expected `object`.
	in Path (at index.js:27)
2017-06-21 10:44:51.731 [warn][tid:com.facebook.React.JavaScript] Warning: View.propTypes has been deprecated and will be removed in a future version of ReactNative. Use ViewPropTypes instead.
2017-06-21 10:44:51.768 [info][tid:com.facebook.React.JavaScript] Running application "Association" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
2017-06-21 10:44:52.601 [info][tid:com.facebook.React.JavaScript] 'app@getLocale:status', 200
2017-06-21 10:44:52.724 [info][tid:com.facebook.React.JavaScript] INVALIDATE STARTUP VALUES
2017-06-21 10:44:52.963 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageVersion'
2017-06-21 10:44:53.049 [info][tid:com.facebook.React.JavaScript] 'app state changed', 'inactive'
2017-06-21 10:44:53.835 [info][tid:com.facebook.React.JavaScript] 'getVersion@status', 200
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

CRASH EXAMPLE 3

2017-06-21 10:49:30.993 DEBUG CalabashServer:252 | Creating the server: <LPHTTPServer: 0x170153820>
2017-06-21 10:49:30.993 DEBUG CalabashServer:253 | Calabash iOS server version: CALABASH VERSION: 0.20.4
2017-06-21 10:49:30.994 DEBUG CalabashServer:256 | App Base SDK: iphoneos10.3
2017-06-21 10:49:30.994 DEBUG CalabashServer:288 | IPHONE_SIMULATOR_ROOT: (null)
2017-06-21 10:49:31.003 DEBUG CalabashServer:274 | Calabash iOS server is listening on: 192.168.99.112 port 37265
2017-06-21 10:49:31.237 DEBUG LPWKWebViewRuntimeLoader:221 | WKWebView successfully implemented LPWebViewProtocol
2017-06-21 10:49:31.715 Association[3975] <Notice> [Firebase/Crash][I-CRA000004] Successfully initialized
2017-06-21 10:49:31.738 Association[3975] <Notice> [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
2017-06-21 10:49:31.750 Association[3975] <Notice> [Firebase/Analytics][I-ACS023007] Firebase Analytics v.4001000 started
2017-06-21 10:49:31.750 Association[3975] <Notice> [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2017-06-21 10:49:31.753 Association[3975] <Notice> [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
2017-06-21 10:49:31.892 [info][tid:main][RCTCxxBridge.mm:184] Initializing <RCTCxxBridge: 0x1703c1c20> (parent: <RCTBridge: 0x1740a7c20>, executor: (null))
2017-06-21 10:49:31.905 [warn][tid:main][RCTBridge.m:114] Class RCTCxxModule was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2017-06-21 10:49:31.931 [info][tid:main][RCTRootView.m:302] Running application Association ({
	initialProps =     {
	};
	rootTag = 1;
})
2017-06-21 10:49:32.711 [warn][tid:com.facebook.React.JavaScript] Warning: PropTypes has been moved to a separate package. Accessing React.PropTypes is no longer supported and will be removed completely in React 16. Use the prop-types package on npm instead. (https://fb.me/migrating-from-react-proptypes)
2017-06-21 10:49:32.746 [warn][tid:com.facebook.React.JavaScript] Warning: React.createClass is no longer supported. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement. (https://fb.me/migrating-from-react-create-class)
2017-06-21 10:49:32.910 [warn][tid:com.facebook.React.JavaScript] Warning: Failed prop type: Invalid prop `transform` of type `string` supplied to `G`, expected `object`.
	in G (at index.js:10)
2017-06-21 10:49:32.912 [warn][tid:com.facebook.React.JavaScript] Warning: Failed prop type: Invalid prop `transform` of type `string` supplied to `Path`, expected `object`.
	in Path (at index.js:27)
2017-06-21 10:49:32.938 [warn][tid:com.facebook.React.JavaScript] Warning: View.propTypes has been deprecated and will be removed in a future version of ReactNative. Use ViewPropTypes instead.
2017-06-21 10:49:32.969 [info][tid:com.facebook.React.JavaScript] Running application "Association" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
2017-06-21 10:49:33.182 Association[3975] <Warning> [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2017-06-21 10:49:33.182 Association[3975] <Notice> [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled
2017-06-21 10:49:44.279 [info][tid:com.facebook.React.JavaScript] 'app@getLocale:status', 200
2017-06-21 10:49:44.352 [info][tid:com.facebook.React.JavaScript] INVALIDATE STARTUP VALUES
2017-06-21 10:49:44.503 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageVersion'
2017-06-21 10:49:44.590 [info][tid:com.facebook.React.JavaScript] 'app state changed', 'inactive'
2017-06-21 10:49:50.267 [info][tid:com.facebook.React.JavaScript] 'getVersion@status', 200
2017-06-21 10:49:50.832 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageLoading'
2017-06-21 10:49:51.101 [info][tid:com.facebook.React.JavaScript] 'association@onSubClickGoto, ', 'None', 'Outside'
2017-06-21 10:49:51.104 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageUnAuthorized'
2017-06-21 10:49:51.235 [warn][tid:com.facebook.React.JavaScript] Warning: checkPropTypes has been moved to a separate package. Accessing React.checkPropTypes is no longer supported and will be removed completely in React 16. Use the prop-types package on npm instead. (https://fb.me/migrating-from-react-proptypes)
2017-06-21 10:49:51.292 [info][tid:com.facebook.React.JavaScript] 'Change to view', 'pageRegister'
2017-06-21 10:49:51.482 [info][tid:com.facebook.React.JavaScript] OnePassword app is installed and ready!
2017-06-21 10:50:07.595 [info][tid:com.facebook.React.JavaScript] 'app state changed', 'active'

	CONFIRM ALERT HERE

2017-06-21 10:50:07.595 [info][tid:com.facebook.React.JavaScript] App has come to the foreground!
2017-06-21 10:50:07.629 [info][tid:com.facebook.React.JavaScript] 'ios got permission', true

Author: Fantashit

1 thought on “iOS First-run sometimes crash

  1. Dear @fbacker and @Ehesp

    I am facing that same problem, if i add this line [FIRApp configure] in AppDelegate.m file my app getting crashed.

    kindly give your suggestion.

    Any updates? Facing the same issue…

Comments are closed.