App iOS stuck on blank white screen when build release React Native

0 votes

I'm setting up a new project using React Native like this tutorial: https://facebook.github.io/react-native/docs/getting-started.html and build iOS release but it does not work, the blank white screen showed after LaunchScreen run.

The app works if build in Debug(react-native run-ios) but does not work in Release(build release by Xcode or terminal).

react-native v0.53.0

react-native-cli v2.0.1

node v8.10.0

Xcode 9.2

blank white screen

The log show in Xcode:

2018-02-06 15:55:14.464233+0700 MyApp[306:35863] [Accessibility] ****************** Loading GAX Client Bundle **************** 2561-02-06 15:55:14.697 [error][tid:main][RCTCxxBridge.mm:423] Failed to load bundle(file:///var/containers/Bundle/Application/4FAF82CD-9EA4-4E73-800A-A2ABC9313405/MyApp.app/main.jsbundle) with error:(Error reading bundle /var/containers/Bundle/Application/4FAF82CD-9EA4-4E73-800A-A2ABC9313405/MyApp.app/main.jsbundle (null)) 2018-02-06 15:55:14.706782+0700 Shiip[306:35863] Failed to load bundle(file:///var/containers/Bundle/Application/4FAF82CD-9EA4-4E73-800A-A2ABC9313405/MyApp.app/main.jsbundle) with error:(Error reading bundle /var/containers/Bundle/Application/4FAF82CD-9EA4-4E73-800A-A2ABC9313405/MyApp.app/main.jsbundle (null))

Sep 21 in Others by gaurav
• 18,960 points
60 views

1 answer to this question.

0 votes

I use many node version so the Xcode not using the node version which I used in my Terminal, it's make my app build crashed. Let's do this to solved my problem

Open The Script Build Phases in Xcode: enter image description here

Now, using with the node version path exactly (use command: which node to get your node version path)

enter image description here

And my problem was solved

answered Sep 21 by rajatha
• 7,440 points

Related Questions In Others

0 votes
0 answers

Xamarin iOS app displaying white blank screen on iPad after update to Xcode 11

I have a Xamarin.iOS app developed on Visual Studio 2019 and ...READ MORE

Sep 22 in Others by gaurav
• 18,960 points
22 views
0 votes
0 answers
0 votes
1 answer

It shows black screen when trying to load Map on device with ionic 2 Google Map Native plugin

In order to answer your question, start ...READ MORE

answered Feb 8 in Others by Rahul
• 9,240 points
404 views
0 votes
0 answers

why is react native video not working on android, but working on ios?

installed react video v. 5.2.0 but an error ...READ MORE

Sep 23 in Others by gaurav
• 18,960 points
20 views
0 votes
0 answers

React Native and iOS share button

I am trying to access iOS' share ...READ MORE

Sep 22 in Others by gaurav
• 18,960 points
10 views
0 votes
1 answer

How do I create folder under an Amazon S3 bucket through PHP API?

Of Course, it is possible to create ...READ MORE

answered Apr 24, 2018 in AWS by anonymous
9,434 views
0 votes
1 answer

Why is collect in SparkR slow?

It's not the collect() that is slow. ...READ MORE

answered May 3, 2018 in Apache Spark by Data_Nerd
• 2,390 points
1,366 views
0 votes
1 answer

Not able to publish workbook in Tableau Server after upgrading it from Tableau 9.1 to 9.2

Following is a little hack that will ...READ MORE

answered Jun 19, 2018 in Tableau by xyz
• 1,560 points
526 views
0 votes
1 answer

Ionic capacitor app shows only white blank screen in ios

Try it: In capacitor.config.json file, we have ...READ MORE

answered Sep 21 in Others by rajatha
• 7,440 points
43 views
0 votes
1 answer

iOS: Random black screen when loading the app

force restarting your iPhone You can always start ...READ MORE

answered Sep 21 in Others by rajatha
• 7,440 points
13 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP