voximplant / react-native-voximplant

Voximplant mobile SDK for React Native (iOS/Android)
http://voximplant.com
205 stars 39 forks source link

duplicate symbols/classes #136

Open anniewey opened 2 years ago

anniewey commented 2 years ago

Seems like there is conflict between 2 classes in these packages. Is there a way to resolve the build conflict? As I'm using VOIP from Sinch and wanted to implement RTM from Voximplant

https://github.com/gwenoleR/react-native-sinch-voip https://github.com/voximplant/react-native-voximplant

iOS:

duplicate symbol '_OBJC_CLASS_$_CallManager' in:
    /Users/xxx/Library/Developer/Xcode/DerivedData/myapp/Build/Products/Debug-iphonesimulator/RNSinchVoip/libRNSinchVoip.a(CallManager-46cc2f4036ee84a9cb2d433ec75a8dae.o)
    /Users/xxx/Library/Developer/Xcode/DerivedData/myapp/Build/Products/Debug-iphonesimulator/react-native-voximplant/libreact-native-voximplant.a(CallManager.o)
duplicate symbol '_OBJC_METACLASS_$_CallManager' in:
    /Users/xxx/Library/Developer/Xcode/DerivedData/myapp/Build/Products/Debug-iphonesimulator/RNSinchVoip/libRNSinchVoip.a(CallManager-46cc2f4036ee84a9cb2d433ec75a8dae.o)
    /Users/xxx/Library/Developer/Xcode/DerivedData/myapp/Build/Products/Debug-iphonesimulator/react-native-voximplant/libreact-native-voximplant.a(CallManager.o)
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Android:

Duplicate class org.webrtc.AndroidVideoDecoder found in modules jetified-sinch-android-rtc-3.17.5-runtime (sinch-android-rtc-3.17.5.aar) and jetified-voximplant-sdk-2.27.0-runtime (com.voximplant:voximplant-sdk:2.27.0)
     Duplicate class org.webrtc.AndroidVideoDecoder$1 found in modules jetified-sinch-android-rtc-3.17.5-runtime (sinch-android-rtc-3.17.5.aar) and jetified-voximplant-sdk-2.27.0-runtime (com.voximplant:voximplant-sdk:2.27.0)
     Duplicate class org.webrtc.AndroidVideoDecoder$DecodedTextureMetadata found in modules jetified-sinch-android-rtc-3.17.5-runtime (sinch-android-rtc-3.17.5.aar) and jetified-voximplant-sdk-2.27.0-runtime (com.voximplant:voximplant-sdk:2.27.0)
     Duplicate class org.webrtc.AndroidVideoDecoder$FrameInfo found in modules jetified-sinch-android-rtc-3.17.5-runtime (sinch-android-rtc-3.17.5.aar) and jetified-voximplant-sdk-2.27.0-runtime (com.voximplant:voximplant-sdk:2.27.0)

Update: Fix build issue by renaming CallManager->SinchCallManager for RNSinchVoip for iOS, but still can't resolve for Android

YuliaGrigorieva commented 2 years ago

Hello @anniewey,

Thank you for reaching out to us.

We will fix this issue in the next release.

Best regards, Yulia Grigorieva