Libraries collision in iOS, React Native and AWS Iot

0

I am trying to developing an iOS App with React Native and with AWSIoT library
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._unmaskBytes' in ┌─ libAWSIoT.a(AWSSRWebSocket.o) └─ libSocketRocket.a(SRIOConsumer.o)

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

Sela
asked 8 months ago338 views
2 Answers
0

Hello,

I understand that you are facing issues while building the app because of the duplicate codes in classes. Could you kindly confirm whether SDK [+] is being used with its version?

[+] https://docs.aws.amazon.com/iot/latest/developerguide/iot-sdks.html

In order to learn more about the error, feel free to refer to "Instructions on how to integrate with React Native" GitHub article.

[+] https://github.com/aws/aws-iot-device-sdk-js/issues/86

Feel free to refer to IOT-IOS samples for more understanding [+]

[+] https://github.com/awslabs/aws-sdk-ios-samples/blob/main/IoT-Sample/Swift/README.md

AWS
answered 8 months ago
profile picture
EXPERT
reviewed a month ago
  • Yes , I am reciveing this error in the build process. I have a native private SDK. this SDK include AWSCore (2.33.4), AWSDynamoDB (2.33.4), AWSIoT (2.33.4). The AWS is in the native code. This code already works in other native project. When I am trying to add this code to React native project it cause to collision with pod in ReactNative ( SocketRocket libreary) It is look like AWS using part of SocketRocket code with renaming to AWS for example : SocketRocket have SRWebSocket class and AWS have AWSSRWebSocket The problem is in 3 spots: SRIOConsumer SRIOConsumerPool SRHTTPResponseErrorKey

0

Yes , I am reciveing this error in the build process. I have a native private SDK. this SDK include AWSCore (2.33.4), AWSDynamoDB (2.33.4), AWSIoT (2.33.4). The AWS is in the native code. This code already works in other native project. When I am trying to add this code to React native project it cause to collision with pod in ReactNative ( SocketRocket libreary) It is look like AWS using part of SocketRocket code with renaming to AWS for example : SocketRocket have SRWebSocket class and AWS have AWSSRWebSocket The problem is in 3 spots: SRIOConsumer SRIOConsumerPool SRHTTPResponseErrorKey

Sela
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions