Create-react-native-app: My 'npm run ios' script hang on 'Simulator.openUrlInSimulatorSafeAsync'

Created on 28 Apr 2018  路  6Comments  路  Source: expo/create-react-native-app

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

All 6 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ArashMotamedi picture ArashMotamedi  路  3Comments

FezVrasta picture FezVrasta  路  3Comments

noelweichbrodt picture noelweichbrodt  路  3Comments

Hareesh007 picture Hareesh007  路  4Comments

THPubs picture THPubs  路  4Comments