最近新开发ReactNative项目又遇到新问题了,error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65.
打开testApp.xcworkspace编译出现'event2/event-config.h' file not found
经查阅是因为Flipper-Folly版本导致的,将Podfile 文件 修改如下
use_flipper! 修改为 use_flipper!({ 'Flipper-Folly' => '2.3.0' })
然后删除Podfile.lock,然后重新 pod install
installed 后 返回上一次目录执行 yarn ios 就可以启动了
解决方案来自:https://github.com/facebook/react-native/issues/30836#issuecomment-772830882