Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate symbols/classes #136

Open
anniewey opened this issue Jan 4, 2022 · 1 comment
Open

duplicate symbols/classes #136

anniewey opened this issue Jan 4, 2022 · 1 comment

Comments

@anniewey
Copy link

anniewey commented Jan 4, 2022

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

@anniewey anniewey changed the title ld: 2 duplicate symbols for architecture x86_64 duplicate symbols/classes Jan 5, 2022
@YuliaGrigorieva
Copy link
Contributor

Hello @anniewey,

Thank you for reaching out to us.

We will fix this issue in the next release.

Best regards,
Yulia Grigorieva

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants