Reputation: 741
I installed a fresh react-native app.I keep getting the below error when I ran react-native run-ios
Incorrect hash:
eb7c61ff0c1c55cd85deb3c15f2731c14c787429 ?/Users/johndoe/.rncache/boost_1_63_0.tar.gz
I have tried react-native upgrade
, rm -rf node_modules
Still doesn't work.
Upvotes: 1
Views: 1895
Reputation: 255
try this one:
rm -rf ~/.rncache
then re-run it.
react-native run-ios
if it's still not showing the simulator, then you could try to add --simulator="iPhone 6s"
react-native run-ios --simulator="iPhone 6s"
Upvotes: 2
Reputation: 1230
Run this command to freshen up everything and pray twice facing the north.
watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache
Upvotes: 1
Reputation: 1
I just resolve it, this problem is the version of boost wrong in start scripts.
Go to https://github.com/facebook/react-native/blob/0.56-stable/scripts/ios-install-third-party.sh and select the branch your rn version.
Drag to the bottom and go to the url
such as https://github.com/react-native-community/boost-for-react-native/releases/download/v1.63.0-0/boost_1_63_0.tar.gz
Copy the download file to ~/.rncache
, replace the old one.
Restart.
Done!
Upvotes: 0
Reputation: 36
Otherwise use create-react-native-app
. That way you can run app both device and simulator, which is great case if you don't need to detach your app.
Upvotes: 0