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

Build fails for iOS: main.jsbundle does not exist #104

Closed
CritiqalPete opened this issue May 26, 2021 · 1 comment
Closed

Build fails for iOS: main.jsbundle does not exist #104

CritiqalPete opened this issue May 26, 2021 · 1 comment

Comments

@CritiqalPete
Copy link
Member

The issue appears during buildtime on XCode:
...Build/Products/Release-iphoneos/America Scores Attendance.app/main.jsbundle does not exist. This must be a bug with'
Searching shows this being a react-native issue that Facebook says is linked to an XCode build update:
facebook/react-native#29356

@popking5466
Copy link

This operation worked for me and saved my week :)

Add this to the package.json - scripts

"bundle:ios": "node ./node_modules/react-native/local-cli/cli.js bundle --platform ios --entry-file index.js --bundle-output ios/**yourAppName**/main.jsbundle --dev=false --verbose"

Now you can run the command to generate main.jsbundle:

npx yarn bundle:ios

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

Archive again.

https://ananda-gopal.medium.com/react-native-main-jsbundle-does-not-exist-5e9c3527554f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants