App is crashing on Launch Screen
See original GitHub issueWhen I’m testing my app on develop mode, everything is ok, but when I’m sending a test flight version of my app to the app store my app is crashing at Launch Screen and I have to open the app from recent list of iPhone.
When i run the app with Release mode i get the following error :
2017-09-07 15:45:37.158 [error][tid:com.facebook.react.JavaScript] undefined is not an object (evaluating ‘console.tron.log’) 2017-09-07 15:45:37.169 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: undefined is not an object (evaluating ‘console.tron.log’) libc++abi.dylib: terminating with uncaught exception of type NSException
Crash Log
Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 3
Application Specific Information: abort() called
Filtered syslog: None found
Last Exception Backtrace: (0x18dd7a1c0 0x18c7b455c 0x18dd7a108 0x1000f6e38 0x1000f1264 0x18dd80160 0x18dc73c3c 0x18dc786ec 0x1000f4d04 0x1001427fc 0x100142668 0x18cc05200 0x18cc051c0 0x18cc13444 0x18cc089a8 0x18cc13940 0x18cc1538c 0x18cc150ec 0x18ce0e2b8 0x18ce0dda4)
Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0: 0 libsystem_platform.dylib 0x000000018ce07e70 0x18ce06000 + 7792 1 CoreFoundation 0x000000018dc800f4 0x18dc4b000 + 217332 2 ImageIO 0x000000018fb86918 0x18f9f2000 + 1657112 3 ImageIO 0x000000018fb86460 0x18f9f2000 + 1655904 4 ImageIO 0x000000018faac010 0x18f9f2000 + 761872 5 ImageIO 0x000000018fa1871c 0x18f9f2000 + 157468 6 ImageIO 0x000000018fbb7688 0x18f9f2000 + 1857160 7 ImageIO 0x000000018fbbb8a0 0x18f9f2000 + 1874080 8 ImageIO 0x000000018fc063f0 0x18f9f2000 + 2180080 9 ImageIO 0x000000018fa1d510 0x18f9f2000 + 177424 10 ImageIO 0x000000018fa1b058 0x18f9f2000 + 168024 11 ImageIO 0x000000018fa2477c 0x18f9f2000 + 206716 12 ImageIO 0x000000018fa22708 0x18f9f2000 + 198408 13 QuartzCore 0x0000000190f96a98 0x190f7c000 + 109208 14 QuartzCore 0x0000000190f95e20 0x190f7c000 + 106016 15 QuartzCore 0x0000000190f97be8 0x190f7c000 + 113640 16 QuartzCore 0x0000000190f97e4c 0x190f7c000 + 114252 17 QuartzCore 0x0000000191087088 0x190f7c000 + 1093768 18 QuartzCore 0x00000001910037f8 0x190f7c000 + 555000 19 QuartzCore 0x000000019102ac58 0x190f7c000 + 715864 20 QuartzCore 0x000000019102b678 0x190f7c000 + 718456 21 CoreFoundation 0x000000018dd277dc 0x18dc4b000 + 903132 22 CoreFoundation 0x000000018dd2540c 0x18dc4b000 + 893964 23 CoreFoundation 0x000000018dd2589c 0x18dc4b000 + 895132 24 CoreFoundation 0x000000018dc54048 0x18dc4b000 + 36936 25 GraphicsServices 0x000000018f6da198 0x18f6ce000 + 49560 26 UIKit 0x0000000193c402fc 0x193bc5000 + 504572 27 UIKit 0x0000000193c3b034 0x193bc5000 + 483380 28 primi 0x00000001000d80d0 0x1000d0000 + 32976 29 libdyld.dylib 0x000000018cc385b8 0x18cc34000 + 17848
Thread 3 name: Dispatch queue: com.facebook.react.ExceptionsManagerQueue Thread 3 Crashed: 0 libsystem_kernel.dylib 0x000000018cd4a014 0x18cd2b000 + 126996 1 libsystem_pthread.dylib 0x000000018ce12450 0x18ce0d000 + 21584 2 libsystem_c.dylib 0x000000018ccbe3e0 0x18cc5b000 + 406496 3 libc++abi.dylib 0x000000018c7892d4 0x18c788000 + 4820 4 libc++abi.dylib 0x000000018c7a6cc0 0x18c788000 + 126144 5 libobjc.A.dylib 0x000000018c7b4844 0x18c7ac000 + 34884 6 libc++abi.dylib 0x000000018c7a366c 0x18c788000 + 112236 7 libc++abi.dylib 0x000000018c7a2f84 0x18c788000 + 110468 8 libobjc.A.dylib 0x000000018c7b4690 0x18c7ac000 + 34448 9 primi 0x00000001001429f0 0x1000d0000 + 469488 10 primi 0x0000000100142668 0x1000d0000 + 468584 11 libdispatch.dylib 0x000000018cc05200 0x18cc04000 + 4608 12 libdispatch.dylib 0x000000018cc051c0 0x18cc04000 + 4544 13 libdispatch.dylib 0x000000018cc13444 0x18cc04000 + 62532 14 libdispatch.dylib 0x000000018cc089a8 0x18cc04000 + 18856 15 libdispatch.dylib 0x000000018cc13940 0x18cc04000 + 63808 16 libdispatch.dylib 0x000000018cc1538c 0x18cc04000 + 70540 17 libdispatch.dylib 0x000000018cc150ec 0x18cc04000 + 69868 18 libsystem_pthread.dylib 0x000000018ce0e2b8 0x18ce0d000 + 4792 19 libsystem_pthread.dylib 0x000000018ce0dda4 0x18ce0d000 + 3492
Environment
react-native -v
: 0.46.1node -v
: 7.7.1npm -v
: 5.3.0yarn --version
:
Then, specify:
- Target Platform: IOS
- Development Operating System: macOS
- Build tools:
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (1 by maintainers)
Getting the same issue after ungrading to iOS11 and react-native 0.48
I had exactly the same issue, the same type of a crash. It turned out to be due to use of the deprecated View.propTypes.style in one of the imported libraries. See:
https://github.com/facebook/react-native/issues/16542
By the way, you can test release builds before sending it to Testflight or Appstore in Simulator:
react-native run-ios --configuration Release