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

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.
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.
Closing after seven days with no follow up from the author.
got this error when library was added but forgot to run npm i / yarn
npm i fixed it
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 !
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).

@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.
removed Bundle React Native code and images from Build Phases in Xcode and solved my problem.
Most helpful comment
This issue take me some days to fixed.
Here is my fix:
Add this line to
scriptsin your package.json file.Now your can run the command to generate
main.jsbundle.yarn build:iosornpm run build:iosOpen the Xcode -> Select project target -> add
main.jsbundletoCopy Bundle Resourcein Build Phases. (image below).