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

IOS emulator won't display the app #10394

Closed
ansmonjol opened this issue Oct 14, 2016 · 12 comments
Closed

IOS emulator won't display the app #10394

ansmonjol opened this issue Oct 14, 2016 · 12 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@ansmonjol
Copy link

Hi,
I have a problem when running react-native run-ios on my project.

The IOS emulator launch well when then I have the application which start to launch and immediately after hide itself.
I say hide because if I Cmd-Shift-H(X2) I saw the app in the background, and when I click on it, it return me to the home screen.

If I launch the Xcode project and run the app from the Xcode app, it work fine.

I've had some troubles with my app before, the IOS version was 'abandoned' and I've installed a lot of modules and changed the name of the project in the mean time and before trying to make it work on IOS.
Then I've decided to create a new project with react-native init myNewProject (because I couldn't figured out how to fix the IOS, something with a workspace not configured) and copy paste inside my index.ios/android.js and all my code base.

So now Android is still working and IOS is only working if I launch the app from Xcode.

I've tried to reset the emulator but it don't change anything.
I don't have any logs about app crash or something,

Any idea ?

Logs

I've put the device logs after running react-native run-ios on a gist
https://gist.github.com/ansmonjol/f6fa1e71a20b944bf67429c57d081165

Additional Information

  • React Native version: 0.35
  • Platform: IOS
  • Operating System: macOS El capitan
  • Xcode: Version 8.0
@dunhuang
Copy link

I have the same issue, and I can't even run with Xcode...

@hramos
Copy link
Contributor

hramos commented Oct 18, 2016

Thanks for your question!

We want to make sure to keep signal strong in the GitHub issue tracker – to make sure that it remains the best place to track issues that affect the development of React Native.

Questions like yours deserve a purpose-built Q&A forum. Would you like to post this question to Stack Overflow with the tag #react-native? We'll be happy to answer there. Post a link to your Stack Overflow question here, so that we don't lose track of it.

@hramos hramos closed this as completed Oct 18, 2016
@ansmonjol
Copy link
Author

@thomas5903
Copy link

For me, I use NVM to set the latest node version. I had to set my default node version to a compatible version for react-native and afterwards everything worked fine.

@suryaadtmaja
Copy link

i have the same issue, when i started running (react-native run-ios) the emulator is opened but not showing my apps, and some apps that i get from github sometimes is showing up

@kgirma
Copy link

kgirma commented Sep 3, 2017

same issue here the app closes upon start, though it works with android

@katiachumakova
Copy link

Anyone found out how to fix this? If so can you post your solution (I'm a noob so please please post instructions).

@kgirma
Copy link

kgirma commented Sep 4, 2017

Apparently, This is a known issue with versions above 47.x, I personally had to rebuild my project using an older version of react native.
#15762 (comment)

@rseevan
Copy link

rseevan commented Oct 25, 2017

try

react-native init --version="0.44.0" Albums

while creating a new project.
Then

react-native run-ios

It did not launch the simulator for the first time so I opened another iOS application in Xcode and ran it. There it was! Behind the recently launched simulator.

Then next time when I recreated the react native application using version 0.44.0, it launched automatically.

@suryaadtmaja
Copy link

i've same issue, fixed went i change the emulator device and build it in xcode.

@kevinNejad
Copy link

I've come across the same issue.you may have installed a new native library and link it to your project. Some native modules and library need you to add their framework into your project from xcode. I'm not sure if changing device would help fixing the issue. you may need to unlink the library. Its so annoying, but I am sure there should be a way to resolve it completely.
It happened to me when I installed lottie library and had to add a framework manually to my ios project.

@pstanton
Copy link

pstanton commented May 21, 2018

I'm having the exact same problem, also having tried to bring a fully functional android tested app into iOS - given up and started a blank project. I've even deleted the app project and created a new blank one but can't get it to run.

I can't quite understand how this is not a react-native issue @hramos ? why is it closed? is there a solution?

As per the recommendations, I can't unlink components because the project that referenced anything has been deleted.

I don't think downgrading react-native is a very good solution - especially if it is not a react-native issue! but i've tried all the other suggestions including:

react-native start --reset-cache
watchman watch-del-all
npm cache verify

*** UPDATE::

the only thing that worked for me was deleting the [project]/ios/build directory, running npm start and then react-native run-ios

i can now build my test-app with no extra dependencies.

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests