react-native: iOS - 0.48.0 - Blank App Crashes At Launch

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

  1. react-native -v: 0.48.0
  2. node -v: v8.3.0
  3. npm -v: 5.3.0
  4. yarn --version: 0.27.5

Then, specify:

  • Target Platform: iOS - xCode Version 8.3.3 (8E3004b)
  • Development Operating System: macOS Sierra 10.12.4
  • Build tools: Command Line

Steps to Reproduce

(Write your steps here:)

  1. react-native init --version 0.48.0 test
  2. cd ./test
  3. react-native run-ios
  4. iPhone 6 - iOS 10.0 (14A345) with resetted content and settings
  5. Loading screen open
  6. App crashes and does not even compile the JS bundle

Here the command line log: https://gist.github.com/fabriziogiordano/2952ea25e10dfc10d13e5fd8ca9f9690

Expected Behavior

The App does not crash on launch and the JS is bundled.

Actual Behavior

The App does crash on launch and the JS is bundled.

xcodeerror

xcodeversion

Reproducible Demo

React Native 0.48.0-rc.1 does not throw such error and works as expected. I am assuming that something in here v0.48.0-rc.1…v0.48.0 is causing the issue.

(Paste the link to an example project and exact instructions to reproduce the issue.)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 25
  • Comments: 44 (5 by maintainers)

Most upvoted comments

React Native is the most extreme love & hate relationship I have.

Hey @cxgslegend - I had the same problem as well. I’m using a previous version while it gets resolved 😃

react-native init --version 0.47.0 <projectname>

Same problem ! I’m now bald ! 😦

wasted my 2 days. hope it will fix soon.

This is my third days with a same problem. I almost give up learning React-Native.

Since I am at the workshop already, I reverted the commit that caused this issue and released 0.48.2.

Apologies for the issues, hope I didn’t destroy everyone’s Sunday 🔥

having a same issue with 50.0

This is a bug with 0.48.0,I have the same problem. I set a exceotion breakpoint with Xcode and find the problem. The following fixes might be useful to you.

  1. open the xxx.xcodeproj with XCode;
  2. click ⌘⇧F ,search(in RCTMultipartStreamReader.m at line 79):
NSUInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] unsignedIntValue] : 0;
  1. replace it with:
NSUInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] integerValue] : 0;
  1. run.

@larenelg-tw, that worked like a charm! Thank you so much!

@larenelg-tw this is also proven to be stable for both ios and android react-native init --version 0.47.2 yourprojectname

The New version of react-native is carrying some bugs during js bundle and with gradlew assemblerelease downgrading the react version seems to be only option for right now.

48.1 fixes that issue. Other fixes will land to 48.2

On Mon, 4 Sep 2017 at 12:40 Srdjan Prpa notifications@github.com wrote:

@grabbou https://github.com/grabbou you mean 0.48.1. Or 0.48.2 coming soon?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/facebook/react-native/issues/15762#issuecomment-326929773, or mute the thread https://github.com/notifications/unsubscribe-auth/ACWcxvU0top5uFgywUX241AGjOb_TBZhks5se9OIgaJpZM4PKyXj .

Same issue, solution is downgrade or wait some fix 😃

Same issue. Downgraded to 0.47.2.