storesafe / cordova-sqlcipher-adapter

A Cordova/PhoneGap plugin to create and access encrypted databases on Android, iOS, and Windows with API similar to HTML5/Web SQL API
Other
89 stars 55 forks source link

Duplicated symbols [iOS platform version] #59

Open mgarciaibanez opened 6 years ago

mgarciaibanez commented 6 years ago

Hi.

We are developing an app using your plugin and PSPDFKit.

When we try to debug the app during compilation it returns duplicated symbol, here you have the error:

duplicate symbol _OBJCCLASS$_PSPDFThreadSafeMutableDictionary in: /Users/mgarciaibanez/Library/Developer/Xcode/DerivedData/MyProject-cnnzydqnyttpqmhgwuxuoyvuqcgn/Build/Intermediates.noindex/MyProject.build/Debug-iphoneos/MyProjecte.build/Objects-normal/arm64/PSPDFThreadSafeMutableDictionary.o MyProject/Plugins/es.efl.pdfviewer/PSPDFKit.framework/PSPDFKit(PSPDFThreadSafeMutableDictionary.o) duplicate symbol _OBJCIVAR$_PSPDFThreadSafeMutableDictionary._dictionary in: /Users/mgarciaibanez/Library/Developer/Xcode/DerivedData/MyProject-cnnzydqnyttpqmhgwuxuoyvuqcgn/Build/Intermediates.noindex/MyProject.build/Debug-iphoneos/MyProject.build/Objects-normal/arm64/PSPDFThreadSafeMutableDictionary.o Lefebvre mobile/Plugins/es.efl.pdfviewer/PSPDFKit.framework/PSPDFKit(PSPDFThreadSafeMutableDictionary.o) duplicate symbol _OBJCIVAR$_PSPDFThreadSafeMutableDictionary._lock in: /Users/mgarciaibanez/Library/Developer/Xcode/DerivedData/MyProject-cnnzydqnyttpqmhgwuxuoyvuqcgn/Build/Intermediates.noindex/MyProject.build/Debug-iphoneos/MyProject.build/Objects-normal/arm64/PSPDFThreadSafeMutableDictionary.o MyProject/Plugins/es.efl.pdfviewer/PSPDFKit.framework/PSPDFKit(PSPDFThreadSafeMutableDictionary.o) duplicate symbol _OBJCMETACLASS$_PSPDFThreadSafeMutableDictionary in: /Users/mgarciaibanez/Library/Developer/Xcode/DerivedData/MyProject-cnnzydqnyttpqmhgwuxuoyvuqcgn/Build/Intermediates.noindex/MyProject.build/Debug-iphoneos/MyProject.build/Objects-normal/arm64/PSPDFThreadSafeMutableDictionary.o MyProject/Plugins/es.efl.pdfviewer/PSPDFKit.framework/PSPDFKit(PSPDFThreadSafeMutableDictionary.o) ld: 4 duplicate symbols for architecture arm64

Would it be possible to have a versión without these files or do you have any suggestion about how to get rid of these files before executing cordova prepare ios?

Thanks a lot

brodycj commented 6 years ago

My apologies for the delay and thanks for reporting. Probably the best solution is to use https://www.npmjs.com/patch-package if you can, otherwise maintain your own fork until I sort this one out.

I am thinking of a couple possible solutions on the sql* plugin side: