infoxicator / react-native-star-prnt

React-Native bridge to communicate with Star Micronics Bluetooth/LAN Printers
MIT License
67 stars 65 forks source link

Duplicate symbol causes build to fail #10

Open jimmybaker opened 5 years ago

jimmybaker commented 5 years ago

I know this isn't a problem with this repo and maybe I'm wrong to ask here but I'm going to anyway:

What do you do when the StarIO.framework uses duplicate symbols from other third-party libraries? Our app already supports Epson printers and now that we're trying to add support for star printers, we get this message when trying to build:

duplicate symbol _GetOnlineStatus in:
    /projects/MyApp/node_modules/react-native-star-prnt/ios/Frameworks/StarIO.framework/StarIO(StarIOPort.o)
    /projects/MyApp/ios/libepos2.a(eposprint_common_status.o)
duplicate symbol _hasListeners in:
    /Users/jimmy/Library/Developer/Xcode/DerivedData/MyApp-gjwlztxwlgeyipbojfoewcpshknr/Build/Products/Debug-iphoneos/ReactNativeSocketMobile/libReactNativeSocketMobile.a(ReactNativeSocketMobile.o)
    /Users/jimmy/Library/Developer/Xcode/DerivedData/MyApp-gjwlztxwlgeyipbojfoewcpshknr/Build/Products/Debug-iphoneos/libRNStarPrnt.a(RNStarPrnt.o)
ld: 2 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)