ios - React Native - RCTFatalException : Unhandled JS Exception: "version" is a required argument

标签 ios react-native react-native-ios

我正在做一个 React Native 应用程序

( react 原生:0.43.4)

我在 iOS 上运行发布架构时遇到问题。

我有 Pod (Crashlytics),并且我正在通过 Workspace 项目运行我的应用程序。

在 Debug模式下,它运行没有问题,当我切换到 Release模式时,它会抛出此异常:

*** Terminating app due to uncaught exception 'RCTFatalException: 
Unhandled JS Exception: "version" is a required argument.', 
reason: 'Unhandled JS Exception: "version" is a required argument., stack:
            a@551:111
            i@550:244
            o@550:143
            l@543:504
            <unknown>@381:901
            <unknown>@381:676
            <unknown>@381:851
            <unknown>@381:676
            go@381:525
            <unknown>@381:651
            <unknown>@381:651
            <unknown>@381:651
            <unknown>@381:651
            <unknown>@12:741
            i@2:965
            t@2:572
            global code@667:9
            '
            *** First throw call stack:
            (0x18f35efd8 0x18ddc0538 0x18f35ef20 0x1000e3010 0x1000dd54c 0x18f364e80 0x18f25a2b4 0x18f25ee7c 0x1000e0f6c 0x100106e0c 0x1001067bc 0x1005f1a50 0x1005f1a10 0x1005ff2e8 0x1005f5634 0x1005ff810 0x100601630 0x10060139c 0x18e41f1d0 0x18e41ed7c)
            libc++abi.dylib: terminating with uncaught exception of type NSException

我一直在寻找这个异常,尽管我还没有找到解决方案......

知道这是什么吗?

谢谢。

最佳答案

您的错误来自您的 JavaScript

Unhandled JS Exception

由于它仅在 Release模式下发生,因此请检查仅在该模式下执行的所有 js 代码(例如,搜索任何 if (!__DEV__) 或其他可能用于区分的标志发布和 Debug模式)

关于ios - React Native - RCTFatalException : Unhandled JS Exception: "version" is a required argument,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43890812/

相关文章:

android - 如何将现有的 Angular1 Web 应用程序转换为 Cordova 应用程序?

javascript - 为什么等待代码完成时等待不起作用

javascript - 为什么我的 Fetch 请求没有在 React-Native 中发送自定义 header ?

xcode - React-native/iOS 应用程序 : Module 'SquareInAppPaymentsSDK' not found, 虽然它已添加到项目中

react-native - 如何使用@sentry/react-native 在我的模拟器中打开用户反馈窗口

ios - React-Native navigation.addListener 不是函数

ios - 根据预览 View Controller 的 PHAsset 大小计算 preferredContentSize

ios - 使用 RxSwift 观察 UITextField.editing

ios - Instagram 注销在 iphone 中不起作用?

reactjs - undefined 不是函数 '(0, _reactNavigation.StackNavigator)' 未定义)