Skip to content

App works in metro bundler and on expo but built apk crashes on emulator and ipa on testflight #24216

Closed
@viktorvsk

Description

@viktorvsk

App works in expo (locally wtih metro bundler and published to expo). But apk and ipa builds dont work (checked apk on emulator and ipa both, emulator and testflight)

I have index.js, index.android.js and index.ios.js with the same content:

import { KeepAwake, registerRootComponent } from 'expo';
import App from './App';

if (__DEV__) {
  KeepAwake.activate();
}

registerRootComponent(App);

react-native info output:

React Native Environment Info:
  System:
    OS: macOS High Sierra 10.13.6
    CPU: (4) x64 Intel(R) Core(TM) i5-2415M CPU @ 2.30GHz
    Memory: 51.13 MB / 8.00 GB
    Shell: 5.0.3 - /usr/local/bin/bash
  Binaries:
    Node: 11.2.0 - /usr/local/bin/node
    Yarn: 1.0.2 - /usr/local/bin/yarn
    npm: 6.9.0 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
    Android SDK:
      API Levels: 28
      Build Tools: 28.0.3, 29.0.0
      System Images: android-28 | Google APIs Intel x86 Atom
  IDEs:
    Android Studio: 3.3 AI-182.5107.16.33.5314842
    Xcode: 10.1/10B61 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.5.0 => 16.5.0
    react-native: https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz => 0.57.1
  npmGlobalPackages:
    react-native-cli: 2.0.1`

package.json:

{
  "main": "index.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "eject": "expo eject"
  },
  "dependencies": {
    "@ptomasroos/react-native-multi-slider": "^1.0.0",
    "axios": "^0.18.0",
    "expo": "^32.0.0",
    "native-base": "^2.12.1",
    "prop-types": "^15.7.2",
    "react": "16.5.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
    "react-native-contacts": "^3.1.4",
    "react-native-image-gallery": "github:ever-digital/react-native-image-gallery",
    "react-native-multi-slider": "github:ptomasroos/react-native-multi-slider",
    "react-native-permissions": "^1.1.1",
    "react-navigation": "^3.3.2",
    "react-redux": "^6.0.1",
    "recyclerlistview": "^1.3.4",
    "redux": "^4.0.1",
    "redux-thunk": "^2.3.0"
  },
  "devDependencies": {
    "babel-preset-expo": "^5.0.0"
  },
  "private": true
}

Latest error I have with android build is:

Uncaught Error: Attempting to call JS function on a bad application bundle: AppRegistry.runApplication()
Uncaught Error: com.facebook.react.devsupport.JSException: Invalid character '\u001f' ...

Tried reinstalling npm packages, running expo start -c
Should I try to downgrade SDK version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugResolution: LockedThis issue was locked by the bot.Tech: Bundler 📦This issue is related to the bundler (Metro, Haul, etc) used.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions