question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[0.46.3] fails to run on device

See original GitHub issue

Is this a bug report?

yes

Environment

react-native-cli: 2.0.1
react-native: 0.46.3
node: v8.1.0

Target Platform: iOS

Steps to Reproduce

Build iOS app for release, and try to run it on the actual iOS device.

The app will crash with error:

Error reading bundle /var/containers/Bundle/Application/62A1S7F9-6795-4S7E-93B3-A2F17FC5BFCF/MyApp.app/main.jsbundle

On the simulator, the app runs fine. After downgrading to 0.45.1 everything worked on the device as well again.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:14
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
ivpusiccommented, Jul 19, 2017

Solved it. It seems that packager is trying to figure out node version installed on my system. The problem was that I am using nvm and default nvm node version was v5.7.1, and this was too old to build the app. However in my zsh config, I have nvm use v8.1.0 which is good, but it wasn’t picking up v8.1.0 while building the app. The solution was to mark v8.1.0 as nvm default.

3reactions
scgoughcommented, Jul 20, 2017

@ivpusic Hi, I too have this problem. When I deploy my app to a device when compiled for Release I see:

Error reading bundle /var/containers/Bundle/Application.../MyApp.app/main.jsbundle

I’m not using nvm - is there an alternative for brew? Node version is v8.2.0

Debug mode works fine (loading the bundle off my laptop)

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSCuq36829 - ACS 5.5 - /var fills up to 100 ... - Cisco Bug
Symptom: /var fills up on ACS 5.5 and hence causes instability in the system. The system status shows up as Critical.
Read more >
Sane/WIA/TWAIN: call get_device while this device is ... - GitLab
Try to call lis_api->get_device with the same device id in another app. Result: LIS_ERR_INTERNAL_UNKNOWN_ERROR is returned. Expected result:.
Read more >
Build Failed Generated Build APK react native - Stack Overflow
This issue appears on RN 0.46.3 as stated on React Native's github: https://github.com/facebook/react-native/issues/14464.
Read more >
execution failed for task ':app:mergedebugassets'. - You.com
when trying to run the application on any device i got the following error from file_picker What went wrong: Execution failed for task...
Read more >
AMD Ryzen™ Chipset Driver Release Notes (2.17.25.506)
I2C power management option is hidden in device manager ... AMD does not provide support or service for issues or damages related to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found