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

Xcode compile error on missing main.jsbundle #4

Open
Cchumi opened this issue Dec 7, 2018 · 5 comments
Open

Xcode compile error on missing main.jsbundle #4

Cchumi opened this issue Dec 7, 2018 · 5 comments

Comments

@Cchumi
Copy link

Cchumi commented Dec 7, 2018

Hi everyone I just installed latest Xcode on high Sierra 10.13.6.
Clone git repo ok
Npm install ok
Pod install ok

But when I open xcworkspace project in Xcode and trying to build it I got an error on not finding main.jsbundle file.

I search around for dilution but I find nothing that worked.

Have you an idea ?

Thanks

@manbod
Copy link
Collaborator

manbod commented Dec 7, 2018

Hi @Cchumi ,
I just did a fresh clone of this repo and the app seems to build fine on Xcode. Was unable to reproduce your bug. Can you try opening (in Xcode) File -> Workspace Settings... and toggle the Build System to Legacy Build System. And then do a Clean and Build.
Xcode 10 is known to have build issues with React-Native. This could be one of them.

Let us know if this works.

@linchenhsin
Copy link

Hi @manbod ,
I have the same error and Legacy Build System, Clean and Build doesn't work for me.
Please advise. Thank you!

@linchenhsin
Copy link

Okay.. when I npm install, it found 2 vulnerabilities (1 low, 1 high) so I updated ran npm audit fix and install react-native@0.57.7 which gave me missing main.jsbundle.

So I changed the dependencies back to "react-native": "^0.55.1" and it works.

Not sure how to run it if its react-native@0.57.7 though.

@Cchumi
Copy link
Author

Cchumi commented Dec 11, 2018

Okay.. when I npm install, it found 2 vulnerabilities (1 low, 1 high) so I updated ran npm audit fix and install react-native@0.57.7 which gave me missing main.jsbundle.

So I changed the dependencies back to "react-native": "^0.55.1" and it works.

Not sure how to run it if its react-native@0.57.7 though.

Hi Could you please explain how you solve this issue ..?

you just change dependencies in json package or you install it via npm ?

Thanks

@linchenhsin
Copy link

@Cchumi I changed the dependency then npm install

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

3 participants