Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native assembleRelease app::bundleReleaseJsAndAssets never progress

I'm trying to generate release version of my app using React-native :

./gradlew assembleRelease

It's progress until app::bundleReleaseJsAndAssets gets stuck at 93% and never progress. I dont have any error on terminal.

About OS I'm on Mac OS.

like image 922
Khalid Ahmada Avatar asked Oct 30 '22 12:10

Khalid Ahmada


1 Answers

issue reported https://github.com/facebook/react-native/issues/10078

If you are using realm, please consider that comment:

:app:bundleReleaseJsAndAssets was trying to bundle the default.realm* in the root folder generated from the tests in jest... So it was hanging there.

It couldn't decompile them or whatever. So i just deleted them and it worked again

I used to have realm in my project but removed it. I still had files not tracked by git, hanging around. I simply removed everything related to realm and it worked again

like image 72
Jeremie Avatar answered Nov 02 '22 23:11

Jeremie