React-native: Unable to start app on iOS simulator

Created on 22 Oct 2017  路  14Comments  路  Source: facebook/react-native

Is this a bug report?

yes

Have you read the Contributing Guidelines?

yes

Environment

Environment:
OS: macOS Sierra 10.12.6
Node: 8.6.0
Yarn: Not Found
npm: 4.6.1
Watchman: 4.7.0
Xcode: Xcode 9.0.1 Build version 9A1004
Android Studio: 2.3 AI-162.4069837

Packages: (wanted => installed)
react: 16.0.0-alpha.12 => 16.0.0-alpha.12
react-native: ^0.48.4 => 0.48.4

Target Platform: iOS (10.3)

Steps to Reproduce

I installed XCode 9.1 beta yesterday and subsequently uninstalled it (and remains with Xcode 9.0), but now i can no longer open a react native app on the iPhone simulator.

It's able to start the simulator, but the terminal header just rapidly toggle between node and simctl and Expo client doesn't get installed.

I have try reinstalling XCode, didn't fix the problem.

Gif: https://thumbs.gfycat.com/ThirstyYoungAmazontreeboa-size_restricted.gif

Locked

Most helpful comment

Downgrading Xcode is not a solution.

Thank you @James2516 for reopening.

All 14 comments

I'm experiencing the same, even with newly initiated projects. My simulator and packager start but the compilation just hangs.

EDIT: I downgraded Xcode to 8.3.3, running fine now.

Yeah Xcode 8.3.3 works. Doesn't work on Xcode 9 though.

Downgrading Xcode is not a solution.

Thank you @James2516 for reopening.

Is there any console output you can share?

As seen in the gif, it's stuck there without any output other than the Starting iOS...

Seeing the same issue with Xcode Version 9.1 beta (9B46)

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.

If anyone runs into this issue simply slide the screen to the left and open the expo app. Then click open app This will trigger the application to build in the console.

@sourcec0de what if my simulator dont have the expo app? I struggle with the same issue.

Closing as this issue doesn't have enough actionable information.

Hello, sorry for adding to a closed issue but I ran into the same issue (thank you for adding the gif, precisely the same on my system). After awhile of frustration I simply changed the hardware from iOS 11.2, iPhone X to iPhone 8 and it works fine now. Also, I can go back to X and things appear to work as intended.

This is a huge issue and it still exists. Here is a video I created which highlight the issue in detail. You can even see that I cannot even click on Open Expo App as it does nothing:
https://twitter.com/azamsharp/status/961667289815900160

Encountered this problem and the fix from @tmehta2442 worked for me

Still running into this issue (gif), both with Xcode 9 and 10. @tmehta2442's solution didn't work for me, neither did restarting my computer or cache or deleting my package-lock.json + node_modules and rerunning yarn install. This issue means I can鈥檛 test on the simulator, only on a physical device. Don't know that I have any more info.

Was this page helpful?
0 / 5 - 0 ratings