xcode 未找到 React Native ios 构建错误“React/RCTBridgeModule.h”文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/55254656/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:54:42  来源:igfitidea点击:

React Native ios build error 'React/RCTBridgeModule.h' file not found

iosxcodereact-nativebuildnode-modules

提问by Dheeraj Bari

I am unable to build react native ios build for real devices and simiulator. Facing following issue:

我无法为真实设备和模拟器构建 react native ios build。面临以下问题:

"'React/RCTBridgeModule.h ' file not found".

“未找到‘React/RCTBridgeModule.h’文件”。

Any solutions?

任何解决方案?

回答by U?ur

Change the import react-native header lines:

更改导入 react-native 标题行:

 #import <React/RCTBridgeModule.h>
 #import <React/RCTLog.h>

To

 #import "RCTBridgeModule.h"
 #import "RCTLog.h"