我正在尝试用ios构建一个项目。在构建时获取以下错误
node_modules/react-native/React/Base/RCTBridge.m:17:9: fatal error: 'RCTDevLoadingViewProtocol.h' file not found
#import "RCTDevLoadingViewProtocol.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
版本:“react原生”:"0.68.0","react":"17.0.2",
发布于 2022-08-28 19:17:57
从package.json
删除了下面的行(我认为这是在排除另一个问题的过程中添加的),并在Xcode中运行Clean Build Folder
对我有帮助。
pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules' pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
https://stackoverflow.com/questions/73513218
复制相似问题