zoho / SalesIQ-Mobilisten-ReactNative

Your mobile app's ideal live chat partner. Power up your mobile App with the SalesIQ Mobilisten SDK for React-Native.
https://mobilisten.io/
9 stars 11 forks source link

1 duplicate symbol for architecture arm64 (iOS) #74

Closed AdamLee321 closed 8 months ago

AdamLee321 commented 8 months ago
Screenshot 2023-10-16 at 12 56 43

Build Specifications • react-native: 0.72.1 • xcode : 14.3.1 • React : 18 • react-native-zohosalesiq-mobilisten : ^6.1.1

Followed the installation steps at: https://www.zoho.com/salesiq/help/developer-section/react-native-sdk-installation.html. I am receiving this error once I try to build the project. Has anyone encountered this issue? If so any solution?

venkatesh-ramesh-12517 commented 8 months ago

Hi @AdamLee321

Greetings from Zoho SalesIQ. We have checked the above-provided build specifications and successfully built the project without encountering the 'duplicate symbol' error. Our 'mobilisten' dependency is also working as expected. If you're still facing this issue, please don't hesitate to contact us at support@zohosalesiq.com. We will be happy to help you.

Best Regards, Venkatesh, Zoho SalesIQ

AdamLee321 commented 8 months ago

Hi @Venkatesh-iOS,

I have looked into this more and have noticed that there is a conflict with another library that I am using.

duplicate symbol '_hasListeners' in: /Users/adamlee/Library/Developer/Xcode/DerivedData/Randox-ecsjvxgjogoyadatjcdwjcilvgsz/Build/Products/Debug-iphonesimulator/RNAppleHealthKit/libRNAppleHealthKit.a(RCTAppleHealthKit.o) /Users/adamlee/Library/Developer/Xcode/DerivedData/Randox-ecsjvxgjogoyadatjcdwjcilvgsz/Build/Products/Debug-iphonesimulator/RNZohoSalesIQ/libRNZohoSalesIQ.a(RNZohoSalesIQ.o)

Seems to be an issue with _hasListeners being used in both projects.

UPDATE: I found a fix for this by going into Pods - Development Pods - RNAppleHealthKit - RCTAppleHealthKit.m

And changing: bool hasListeners; to: static bool hasListeners;

Hope this helps anyone that might need it.