React-Native “react-native run-ios”
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.
- Check this error using simulator app and real device.
- Upgrade Xcode to currently latest version.
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.
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.gzCopy the download file to
~/.rncache
, replace the old one.Restart.
Done!
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
Comments
Post a Comment