React原生IOS应用仅在Xcode 13.2.1真实的设备上崩溃

iqxoj9l9  于 2023-03-31  发布在  React
关注(0)|答案(1)|浏览(383)

这个崩溃只发生在真实的设备上。它在模拟器上工作正常,没有错误。
这是我在Xcode 13.2.1上运行应用程序时的日志:

2022-04-15 07:09:38.578817+0200 MYAPP[1352:356163] You've implemented -[<UIApplicationDelegate>  application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
2022-04-15 07:09:38.581802+0200 MYAPP[1352:356365] 6.34.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: 
2022-04-15 07:09:38.627502+0200 MYAPP[1352:356368] 6.34.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60900000 started
2022-04-15 07:09:38.628907+0200 MYAPP[1352:356368] 6.34.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled 
2022-04-15 07:09:38.637544+0200 MYAPP[1352:356340] 6.34.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
/firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
2022-04-15 07:09:38.639510+0200 MYAPP[1352:356163] 
[CodePush] Loading JS bundle from file:///private/var/containers/Bundle/Application/3BDE599F-E11E-4070-A460-4882CEAE4C63/MYAPP.app/main.jsbundle
2022-04-15 07:09:38.699 [info][tid:main][RCTRootView.m:294] Running application MYAPP ({
    initialProps =     {
    };
    rootTag = 1;
})
2022-04-15 07:09:38.881871+0200 MYAPP[1352:356365] [connection] nw_socket_handle_socket_event [C3.1:1] Socket SO_ERROR [61: Connection refused]
2022-04-15 07:09:38.882411+0200 MYAPP[1352:356365] [connection] nw_socket_handle_socket_event [C2.1:1] Socket SO_ERROR [61: Connection refused]
2022-04-15 07:09:38.887530+0200 MYAPP[1352:356365] [connection] nw_socket_handle_socket_event [C3.2:1] Socket SO_ERROR [61: Connection refused]
2022-04-15 07:09:38.887647+0200 MYAPP[1352:356365] [connection] nw_socket_handle_socket_event [C2.2:1] Socket SO_ERROR [61: Connection refused]
2022-04-15 07:09:38.888159+0200 MYAPP[1352:356364] [connection] nw_connection_get_connected_socket [C3] Client called nw_connection_get_connected_socket on unconnected nw_connection
2022-04-15 07:09:38.888377+0200 MYAPP[1352:356364] TCP Conn 0x282b18d10 Failed : error 0:61 [61]
2022-04-15 07:09:38.888774+0200 MYAPP[1352:356368] [connection] nw_connection_get_connected_socket [C2] Client called nw_connection_get_connected_socket on unconnected nw_connection
2022-04-15 07:09:38.888945+0200 MYAPP[1352:356368] TCP Conn 0x282b18c60 Failed : error 0:61 [61]
2022-04-15 07:09:39.002512+0200 MYAPP[1352:356367] 6.34.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2022-04-15 07:09:39.077983+0200 MYAPP[1352:356365] 6.34.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
2022-04-15 07:09:39.078086+0200 MYAPP[1352:356365] 6.34.0 - [Firebase/Analytics][I-ACS023220] Analytics screen reporting is enabled. Call +[FIRAnalytics logEventWithName:FIREventScreenView parameters:] to log a screen view event. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO (boolean) in the Info.plist
2022-04-15 07:09:39.328 [error][tid:com.facebook.react.JavaScript] Error: Cannot use t "__Schema" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.
2022-04-15 07:09:39.339 [error][tid:com.facebook.react.JavaScript] Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
2022-04-15 07:09:39.341 [info][tid:main][RCTSurface.mm:306] Running surface LogBox ({
    initialProps =     {
    };
    rootTag = 11;
})
2022-04-15 07:09:39.342 [error][tid:com.facebook.react.JavaScript] Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
2022-04-15 07:09:40.342 [info][tid:main][RCTLogBox.mm:52] Failed to mount LogBox within 1s

详细信息

x一个一个一个一个x一个一个二个一个x一个一个三个一个

系统信息

  • macOS版本11.4(Build 20F71)
  • Xcode 13.2.1(19586)(Build 13C100)
dvtswwa3

dvtswwa31#

我认为问题可能是您的日志输出中出现了这个错误。

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.

    2022-04-15 07:09:39.339 [error][tid:com.facebook.react.JavaScript] Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
    2022-04-15 07:09:39.341 [info][tid:main][RCTSurface.mm:306] Running surface 

    LogBox ({
        initialProps =     {
        };
        rootTag = 11;
    })

    2022-04-15 07:09:39.342 [error][tid:com.facebook.react.JavaScript] Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
    2022-04-15 07:09:40.342 [info][tid:main][RCTLogBox.mm:52] Failed to mount LogBox within 1s

相关问题