Closed AdamLee321 closed 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
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.
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?