react-native-cloud-fs icon indicating copy to clipboard operation
react-native-cloud-fs copied to clipboard

Ios: Cannot find protocol declaration for 'RCTBridgeModule';

Open mrded opened this issue 5 years ago • 9 comments

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

mrded avatar Jun 08 '19 09:06 mrded

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

sorinns avatar Aug 13 '19 06:08 sorinns

Any solution for this ? same issue here..

RathaKrishna avatar Sep 12 '19 03:09 RathaKrishna

Any solution for this ? same issue here..

CCSWXD avatar Nov 09 '19 03:11 CCSWXD

Hi @mrded where you able to fix this.

akinyemi-clane avatar Jun 16 '20 07:06 akinyemi-clane

I'm afraid not yet

mrded avatar Jun 18 '20 16:06 mrded

I've fixed it on my end tho

mosoakinyemi avatar Jun 18 '20 16:06 mosoakinyemi

@mosoakinyemi it would be interesting to know how?

mrded avatar Jun 18 '20 16:06 mrded

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

mosoakinyemi avatar Jun 18 '20 17:06 mosoakinyemi

PRs welcome if you have a fix

npomfret avatar Jun 18 '20 18:06 npomfret