Reputation: 5220
This method worked 1 month ago.
running:
react-native run-ios
returns following error:
Scanning 557 folders for symlinks in /home/michal/WebstormProjects/ReactNativeSampleApp/sampleapp/node_modules (2ms)
Found Xcode project sampleapp.xcodeproj
spawnSync xcrun ENOENT
Upvotes: 3
Views: 826
Reputation: 5220
After revisiting this question this is now what I do when react-native fails to build a project on a virtual/real device.
rm -rf ~/Library/Developer/Xcode/DerivedData
watchman watch-del-all
rm -rf node_modules
npm cache clean --force
rm -fr $TMPDIR/react-*
product -> clean
Make sure that all libraries are linked: react-native link
npm install
node node_modules/react-native/local-cli/cli.js start -- --reset-cache
(preferably manually from console because xcode does not reset cache)react-native run-ios
Upvotes: 1