react-native-multipeer
react-native-multipeer copied to clipboard
Duplicate interface definition for class 'RCTBridge'
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>
Does this fix make this library work?
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