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

Ios: Cannot find protocol declaration for 'RCTBridgeModule'; #7

Open
mrded opened this issue Jun 8, 2019 · 9 comments
Open

Ios: Cannot find protocol declaration for 'RCTBridgeModule'; #7

mrded opened this issue Jun 8, 2019 · 9 comments

Comments

@mrded
Copy link

mrded commented Jun 8, 2019

react-native: 0.59.4
xcode: Version 10.2.1 (10E1001)

I've done all installation as written here. On build, I'm getting following errors:

Cannot find protocol declaration for 'RCTBridgeModule'; did you mean 'RCTBridgeMethod'?

Screenshot 2019-06-08 at 10 31 56
Screenshot 2019-06-08 at 10 31 02

@sorinns
Copy link

sorinns commented Aug 13, 2019

react-native: 0.59.1
xcode: Version 10.2.1 (10E1001)

same issue
would happily contribute but i'm not that good with objective c

@RathaKrishna
Copy link

Any solution for this ? same issue here..

1 similar comment
@CCSWXD
Copy link

CCSWXD commented Nov 9, 2019

Any solution for this ? same issue here..

@akinyemi-clane
Copy link

Hi @mrded where you able to fix this.

@mrded
Copy link
Author

mrded commented Jun 18, 2020

I'm afraid not yet

@mosoakinyemi
Copy link

I've fixed it on my end tho

@mrded
Copy link
Author

mrded commented Jun 18, 2020

@mosoakinyemi it would be interesting to know how?

@mosoakinyemi
Copy link

mosoakinyemi commented Jun 18, 2020

Sorry, replied you from my work account.

I solved it by searching for all instances of import "RCTBridgeModule.h, then replacing it with

 #if __has_include(<React/RCTBridgeModule.h>)
 #import <React/RCTBridgeModule.h>
 else
 #import "RCTBridgeModule.h"
 #endif

Also, I changed my build system to New Build System

@npomfret
Copy link
Owner

npomfret commented Jun 18, 2020

PRs welcome if you have a fix

stvkoch pushed a commit to stvkoch/react-native-cloud-fs that referenced this issue Apr 27, 2023
* Update RNCloudFsModule.java

* Update build.gradle

* bump version
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

7 participants