Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
viktorvsk opened this issue Mar 30, 2019 · 2 comments
Labels
Bug Resolution: Locked This issue was locked by the bot. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used.

Comments

@viktorvsk
Copy link

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?

@viktorvsk viktorvsk changed the title App works in metro bundler but built apk crashes on emulator and ipa on testflight App works in metro bundler and on expo but built apk crashes on emulator and ipa on testflight Mar 30, 2019
@react-native-bot react-native-bot added the Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used. label Mar 30, 2019
@viktorvsk
Copy link
Author

Sorry, accidentally posted here, its for expo project of course

@nmakiya
Copy link

nmakiya commented Mar 30, 2019

Also running into this

@facebook facebook locked as resolved and limited conversation to collaborators Mar 30, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Resolution: Locked This issue was locked by the bot. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used.
Projects
None yet
Development

No branches or pull requests

3 participants