React Native学习笔记· 4.运行环境的一些坑

解决 React-Native mac 运行报错 error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening xxx.xcworkspace

解决方法

参考:https://github.com/facebook/react-native/issues/20774

删除项目依赖包以及 yarn 缓存

rm -rf node_modules && yarn cache clean

重新装包

yarn install

清除 React-Native 缓存

rm -rf ~/.rncache

下载 React-Native IOS 运行依赖

 react-native run-ios