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

main.jsbundle does not exist. This must be a bug with #18313

Closed
vshalvaghasiya opened this issue Mar 10, 2018 · 8 comments

Comments

Projects
None yet
9 participants
@vshalvaghasiya
Copy link

commented Mar 10, 2018

File /Users/admin/Library/Developer/Xcode/DerivedData/choubek-cqlacyerebnrpoacifbtrgaeuibp/Build/Intermediates.noindex/ArchiveIntermediates/choubek/BuildProductsPath/Release-iphoneos/choubek.app/main.jsbundle does not exist. This must be a bug with

screen shot 2018-03-10 at 12 35 51 pm

@react-native-bot

This comment has been minimized.

Copy link
Collaborator

commented Mar 10, 2018

Thanks for posting this! It looks like your issue may be incomplete. Are all the fields required by the Issue Template filled out?

You may safely ignore this if you believe your issue contains all the relevant information. Thank you for your contributions.

How to ContributeWhat to Expect from Maintainers

@WoodyWoodsta

This comment has been minimized.

Copy link

commented Mar 12, 2018

I'm having this issue as well. I was able to make builds before the weekend, but all of a sudden, I am getting this error. I'm not sure what has changed, unfortunately.

@hramos

This comment has been minimized.

Copy link
Contributor

commented Mar 26, 2018

Closing after seven days with no follow up from the author.

@hramos hramos closed this Mar 26, 2018

@Stas-Buzunko

This comment has been minimized.

Copy link

commented Apr 1, 2018

got this error when library was added but forgot to run npm i / yarn
npm i fixed it

@PerspectivesLab

This comment has been minimized.

Copy link

commented Jul 16, 2018

actually its not a bug, its more likelly that xcode didnt copy main.jsbundle and the folder 'assets' produced from the bundle to the 'DerivatedData' folder, to resolve this:
in xcode, on left menu, on folder 'ressource', right click and choose 'add files to ...'
choose main.jsbundle, and afterwards 'assets' folder,
compile and it should be fine.

you can verify by going with finder: open a finder instance then: ctrl + shift + g
paste: /Users/admin/Library/Developer/Xcode/DerivedData/choubek-cqlacyerebnrpoacifbtrgaeuibp/Build/Intermediates.noindex/ArchiveIntermediates/choubek/BuildProductsPath/Release-iphoneos/

right click on icon: choubek.app, then choose: show package contents.
if you find main.jsbundle there it worked !

@thanhcuong1990

This comment has been minimized.

Copy link

commented Sep 15, 2018

This issue take me some days to fixed.
Here is my fix:
Add this line to scripts in your package.json file.

"build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'"

Now your can run the command to generate main.jsbundle.
yarn build:ios or npm run build:ios

Open the Xcode -> Select project target -> add main.jsbundle to Copy Bundle Resource in Build Phases. (image below).

screen shot 2018-09-15 at 5 37 09 pm

@rmilejcz

This comment has been minimized.

Copy link

commented Sep 27, 2018

@thanhcuong1990 thank you! My project was failing to bundle, after running that command I was able to see what was causing the bundling to fail and then fix the issue. My build succeeds now!

I'm wondering if there is any way for XCode to report these errors? Metro was not reporting any errors when running in a dedicated terminal, I only was able to see the error when running that bundle command.

@delyar

This comment has been minimized.

Copy link

commented Feb 6, 2019

removed Bundle React Native code and images from Build Phases in Xcode and solved my problem.

@facebook facebook locked as resolved and limited conversation to collaborators Mar 26, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.