I am trying to work on a previous project after resetting my machine. When I run expo to start with IOS simulator the following runs in my terminal then hangs:
Trying to open the project in iOS simulator…
Downloading the latest version of Expo client app
Installing Expo client on iOS simulator
/
I have tried manually installing expo but it still tries to install the client app through the terminal when I run the IOS simulator. Has anyone else run into this issue?
$sudo expo client:install:ios
Uninstalling Expo client from iOS simulator.
Downloading the latest version of Expo client app
Installing Expo client on iOS simulator
Done!
There is still no Expo app installed on the simulator…
I then did
$sudo chmod -R 777 ~/.expo/
and started it via npm start instead of expo start - it worked…
I had the same problem, and the cause was that my users/username/.expo as well as my project/.expo folders were owned by root, this was because I installed expo as root. (This already gave some problems earlier where running start expo didn’t work without root privilege)
What solved it for me was to just remove both of those .expo folders and then run start expo again without root privilege this time.
chmod 777 is never the right solution for any problem.
I think the problem here was that the ownership was wrong, probably because of running expo init or expo start as root. The fix would be to run something like: