Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'React/RCTBridgeModule.h' file not found #5

Closed
FaiChou opened this issue Jul 4, 2018 · 5 comments
Closed

'React/RCTBridgeModule.h' file not found #5

FaiChou opened this issue Jul 4, 2018 · 5 comments

Comments

@FaiChou
Copy link

FaiChou commented Jul 4, 2018

当我将项目使用Pod来管理就报了这个错.

其他的第三方库一般都会有一个.podspec 比如react-native-video.podspec, 所以可以迁移到podfile里:

pod 'react-native-video', :path => '../node_modules/react-native-video'

可是growingio没提供.podspec, 就无法迁移到pod.

在编译时候就报了错:

'React/RCTBridgeModule.h' file not found

同样的RCTWeChat也遇到相同问题, 经过在RCTWeChat.xcodeproj里的header search path添加$(SRCROOT)/../../react-native/Reactrecursive, 这样就可以解决相同的问题.

但是growingio用相同方式不能解决.

image

Environment:
  OS: macOS High Sierra 10.13.5
  Node: 9.5.0
  Yarn: 1.5.0
  npm: 5.7.1
  Watchman: 4.9.0
  Xcode: Xcode 9.4.1 Build version 9F2000
  Android Studio: 3.1 AI-173.4720617

Packages: (wanted => installed)
  react: 16.3.1 => 16.3.1
  react-native: 0.55.4 => 0.55.4
@NanNanCHN
Copy link
Contributor

@FaiChou 后续版本已经支持了pods,待推出;目前还是建议你按文档集成;

@FaiChou
Copy link
Author

FaiChou commented Jul 5, 2018

已经成功将pod里的rn sdk挪回Libraries下

@NanNanCHN
Copy link
Contributor

好的 先关闭了 有问题再reopen

@FaiChou
Copy link
Author

FaiChou commented Aug 21, 2018

关于使用Pods管理报 'React/RCTBridgeModule.h' file not found 的解决方案:

facebook/react-native#20762

@HideOnBushTuT
Copy link

HideOnBushTuT commented Nov 13, 2018

@FaiChou 你好!请问你是怎么解决这个问题的?我尝试了Facebook issue 里的方法无效!不清楚是不是我的使用姿势的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants