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

Libraries collision in iOS, React Native and AWS Iot #668

Open
salitbl opened this issue Sep 19, 2023 · 0 comments
Open

Libraries collision in iOS, React Native and AWS Iot #668

salitbl opened this issue Sep 19, 2023 · 0 comments

Comments

@salitbl
Copy link

salitbl commented Sep 19, 2023

Libraries collision in iOS, React Native and AWS Iot

I am trying to developing an App with React Native and with private native SDK that use AWSIoT.
When I am trying to run this project, the build is failed duo to 12 duplicate codes in classes For example:
❌ duplicate symbol 'OBJC_IVAR$_SRIOConsumer._scanner' in
┌─ libAWSIoT.a(AWSSRWebSocket.o)
└─ libSocketRocket.a(SRIOConsumer.o)

duplicate symbol 'OBJC_CLASS$_SRIOConsumerPool' in
┌─ libAWSIoT.a(AWSSRWebSocket.o)
└─ libSocketRocket.a(SRIOConsumerPool.o)

❌ duplicate symbol '_SRHTTPResponseErrorKey' in
┌─ libAWSIoT.a(AWSSRWebSocket.o)
└─ libSocketRocket.a(SRWebSocket.o)

AWSSRWebSocket include @interface SRIOConsumer and SocketRocket also has @interface SRIOConsumer Do you have any idea how to resolve this issue?

Environment:

  • react:
    installed: 18.2.0
    wanted: 18.2.0
  • react-native:
    installed: 0.72.3
    wanted: 0.72.3

AWSIoT 2.33.4
Dependency Manager: Cocoapods
Swift Version : 5.0
Device Information:

Device: iPhone 12
iOS Version: 16.6.1

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

1 participant