此方法在1个月前有效。
运行:
react-native run-ios
返回以下错误:
Scanning 557 folders for symlinks in /home/michal/WebstormProjects/ReactNativeSampleApp/sampleapp/node_modules (2ms)
Found Xcode project sampleapp.xcodeproj
spawnSync xcrun ENOENT
答案 0 :(得分:1)
在重新审视这个问题之后,现在我的反应是本机无法在虚拟/真实设备上构建项目。
rm -rf ~/Library/Developer/Xcode/DerivedData
watchman watch-del-all
rm -rf node_modules
npm cache clean --force
rm -fr $TMPDIR/react-*
product -> clean
确保所有图书馆都已关联:react-native link
npm install
node node_modules/react-native/local-cli/cli.js start -- --reset-cache
(最好从控制台手动,因为xcode不重置缓存)react-native run-ios