nolanlawson / cordova-plugin-sqlite-2

Native SQLite database API for Cordova/PhoneGap/Ionic, modeled after WebSQL (UNMAINTAINED)
https://nolanlawson.com/2016/04/10/introducing-the-cordova-sqlite-plugin-2/
Apache License 2.0
168 stars 28 forks source link

Conflict with cordova-sqlite-storage #49

Closed aiaf closed 7 years ago

aiaf commented 7 years ago

Cannot build for iOS with cordova-plugin-sqlite-2 and litehelpers/Cordova-sqlite-storage in the same Ionic 2 project.

Build fails with duplicate symbol _OBJC_CLASS_$_SQLitePlugin

Perhaps prefixing the classnames with a namespace as is customary for Cocoa projects would be a solution.

nolanlawson commented 7 years ago

Those two libraries are competitors, not complementary packages. They both add the same object, called SQLitePlugin. ideally you should use one or the other, not both.