IOS 发布正式版 闪退,调试没有问题



  • IOS 模拟器测试没有问题 发布APP store 时被退回,打开时闪退。
    有没有有经验的前辈指点下啊。
    网上看了帖子 有个 Number.isInteger() 的,检查了下代码 也没有用。

    package.json 如下
    {
    "name": "longsheng",
    "version": "0.0.1",
    "private": true,
    "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest",
    "run-a": "react-native run-android"
    },
    "dependencies": {
    "antd-mobile": "^2.1.6",
    "prop-types": "^15.6.1",
    "pubsub-js": "^1.6.0",
    "react": "16.3.0-alpha.1",
    "react-dom": "^16.2.0",
    "react-native": "0.54.0",
    "react-native-camera": "0.12.0",
    "react-native-spinkit": "^1.1.1",
    "react-navigation": "^1.3.0",
    "react-redux": "^5.0.7",
    "redux": "^3.7.2",
    "redux-logger": "^3.0.6",
    "redux-thunk": "^2.2.0"
    },
    "devDependencies": {
    "babel-jest": "22.4.1",
    "babel-plugin-import": "^1.6.5",
    "babel-preset-react-native": "4.0.0",
    "jest": "22.4.2",
    "react-test-renderer": "16.3.0-alpha.1"
    },
    "jest": {
    "preset": "react-native"
    }
    }

    退回的 信息

    Application Specific Information:
    *** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: r.typeof is not a function. (In 'r.typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")', 'r.typeof' is undefined) (/var/containers/Bundle/Application/1D341B81-65AD-44AB-88D8-E44AA78F05F5/longsheng.app/main.jsbundle:11)', reason: 'Unhandled JS Exception: r.typeof is not a function. (In 'r.typeof("function...'
    terminating with uncaught exception of type NSException
    abort() called



  • 需要更多的信息才能帮你,现在看来很简单就是js打包后报错了
    针对这种情况建议先自己定位,使用最简单的方式,逐步定位。
    先建一个最简单的项目,然后一个一个引入第三方组件,首先要确定的就是由哪个组件引起的才好解决,自己项目的代码也是逐步从现在的工程中,把代码一点一点移到新的工程中,到哪里出错了,就是哪里的问题。



  • 老哥,你是怎么处理这个问题的啊


Log in to reply