Khadreal
Khadreal

Reputation: 741

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.

Upvotes: 1

Views: 1895

Answers (4)

Andang Rian Dimas
Andang Rian Dimas

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

Nunchucks
Nunchucks

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

yukito
yukito

Reputation: 1

I just resolve it, this problem is the version of boost wrong in start scripts.

  1. 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.

  2. 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

  3. Copy the download file to ~/.rncache, replace the old one.

  4. Restart.

Done!

Upvotes: 0

mityabeldii
mityabeldii

Reputation: 36

  1. Check this error using simulator app and real device.
  2. 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.

Upvotes: 0

Related Questions