react-native-multipeer icon indicating copy to clipboard operation
react-native-multipeer copied to clipboard

Duplicate interface definition for class 'RCTBridge'

Open wythe51 opened this issue 6 years ago • 2 comments

Description

Can't build project due to the breaking change on 0.40 (See the link below). https://github.com/facebook/react-native/issues/11725

Solution

In RCTMultipeerConnectivity.h and RCTMultipeerConnectivity.m, change codes like

#import "RCTBridgeModule.h"

into

#import <React/RCTBridgeModule.h>

wythe51 avatar Feb 07 '18 08:02 wythe51

Does this fix make this library work?

nathan815 avatar Feb 18 '18 02:02 nathan815

Hi this fixed it for my local emulator.. but I seem to have the old files cached when I open the workspace in Xcode and try and build for either emulator or device.

Any ideas on how I clear the cache please? I tried Product -> Clean but that did not seem to work for me.

Any help appreciated

Update: I fixed this by going into the specific Xcode project for the plugin and doing a Product-Clean

adamgins avatar Jul 02 '18 01:07 adamgins