I have tried some solutions, such as sudo chmod -R 777 ~/.expo/
or restart my mac .etc.
They are all not work for me, any one can help?
https://github.com/expo/xdl/blob/ec7560e3d884afa02f728ac30a4a7f3a20ad2200/src/Simulator.js#L358
dig into the source code, I found it hangs on this function called '_installExpoOnSimulatorAsync'
Does it mean that the code is waiting for the installation of Expo on the simulator?
I got the problem, The 'npm run ios' script wait for the download completion of 'https://dpq5q02fu5f55.cloudfront.net/Exponent-2.5.1.tar.gz', It's a 42mb file, and it cost about 5 minutes in china network, but it throws an timeout Exception about 1min later, so the script fails forever...
Finally solution:
download file : https://dpq5q02fu5f55.cloudfront.net/Exponent-2.5.1.tar.gz
extract it into ~/.expo/ios-simulator-app-cache
rename the Exponent-2.5.1 folder with a '.app' suffix
and excute the script 'npm run ios' again
Most helpful comment
Finally solution:
download file : https://dpq5q02fu5f55.cloudfront.net/Exponent-2.5.1.tar.gz
extract it into ~/.expo/ios-simulator-app-cache
rename the Exponent-2.5.1 folder with a '.app' suffix
and excute the script 'npm run ios' again