Skip to content

React Native App Crash when in Production #23258

Closed
@peterfei

Description

@peterfei

Description

When I'm testing my app on develop mode, everything is ok, Everything was running fine, however during the review, Apple rejected the update because the app crashed on boot. Here are the meaningful lines the report:

Last Exception Backtrace:
0   CoreFoundation                  0x1d3b30ec4 __exceptionPreprocess + 228
1   libobjc.A.dylib                 0x1d2d01a40 objc_exception_throw + 55
2   vesali_app                      0x101c9f478 RCTFatal + 447
3   vesali_app                      0x101c9cf20 -[RCTExceptionsManager reportFatalException:stack:exceptionId:] + 491
4   CoreFoundation                  0x1d3b38630 __invoking___ + 143
5   CoreFoundation                  0x1d3a16450 -[NSInvocation invoke] + 291
6   CoreFoundation                  0x1d3a17034 -[NSInvocation invokeWithTarget:] + 59
7   vesali_app                      0x101cb28f4 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 491
8   vesali_app                      0x101cf6770 facebook::react::invokeInner+ 25552752 (RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&) + 247
9   vesali_app                      0x101cf64d0 invocation function for block in facebook::react::RCTNativeModule::invoke+ 25552080 (unsigned int, folly::dynamic&&, int) + 87
10  libdispatch.dylib               0x1d35696c8 _dispatch_call_block_and_release + 23
11  libdispatch.dylib               0x1d356a484 _dispatch_client_callout + 15
12  libdispatch.dylib               0x1d3511bd0 _dispatch_lane_serial_drain$VARIANT$mp + 591
13  libdispatch.dylib               0x1d3512718 _dispatch_lane_invoke$VARIANT$mp + 431
14  libdispatch.dylib               0x1d351aeb8 _dispatch_workloop_worker_thread + 599
15  libsystem_pthread.dylib         0x1d374d0dc _pthread_wqthread + 311
16  libsystem_pthread.dylib         0x1d374fcec start_wqthread + 3

Environment

System:
      OS: macOS High Sierra 10.13.6
Binaries:
      Node: 10.15.0 - ~/.npm-global/bin/node
      npm: 6.4.1 - ~/.npm-global/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14
IDEs:
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
      react: 16.6.3 => 16.6.3
      react-native: ^0.57.8 => 0.57.8
npmGlobalPackages:
      react-native-unity-view: 1.3.3
      react-native-video: 4.3.1

[skip envinfo]
Any tips/suggestions are greatly appreciated,thanks a lot !

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions