Reputation: 29
I am trying to run a React-Native project on the xCode iOS Simulator using Expo, and I get the following errors:
There was a problem booting a device in iOS Simulator. Quit Simulator, and try again.
Error installing or running app. Error: No iPhone devices available in Simulator.
If I quit the simulator and try again I get these errors:
iOS Simulator device failed to boot. Try opening Simulator first, then running your app.
Error installing or running app. Error: Timed out waiting for iOS Simulator device to boot.
I have tried checking there are devices under the hardware tab of the Simulator.
Any advice?
Upvotes: 1
Views: 1751
Reputation: 329
I had the same issue. The problem was about permissions on folders:
To install Expo on device, just run
expo client:install:ios
But you will get an error saying you have no permission on your user .expo
folder, so just run with sudo
:
sudo expo client:install:ios
Now it says No iPhone devices available in Simulator.
. And of course, running as sudo
you are not able to find the emulator running on your user. Finally I changed the folder owner to my user: gustavoeklund is my user, change to your user when running the command.
sudo chown -R gustavoeklund: /Users/gustavoeklund/.expo
Now I'm able to normally run without sudo
:
expo client:install:ios
Upvotes: 0
Reputation: 857
I had exactly the same error message.
I decided to remove and reinstall Expo. While re-installing I noticed that some of the folders use for installation are owned by root and I have some errors while installing. I change the ownership of those folders to my username on my mac. i.e. "sudo chown -R ownerName: /usr/local/lib/node_modules"
I tried to run a new expo project again and got write access issues to a facebook watchman directory, I did the same thing I did above by granting control of this directory to my logged on account instead of the default root which is the owner of the folder at the time of the error.
I tried to run again on ios and everything now works fine
Note: I erase all the content settings in my IOS emulator before running the app on IOS. You can do this by going to the menu on simulator Hardware => Erase All Content and Settings
Upvotes: 0