你好,我在编译我的应用程序时遇到了这个错误: 重复符号 _OBJC_CLASS_$_SQLitePlugin 和重复符号 _OBJC_METACLASS_$_SQLitePlugin 我的 pakckege.josn 文件有这些包:
"cordova-plugin-sqlite-2": "~1.0.4",
"cordova-sqlite-storage": "^2.1.3",
"pouchdb-adapter-cordova-sqlite"
和这些插件:
"cordova-sqlite-storage"
"cordova-plugin-sqlite-2"
我不知道冲突在哪里
最佳答案
来自作者的 Github 问题页面: Github issue page
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.
所以你应该删除这两个插件之一,cordova-sqlite-storage
,cordova-plugin-sqlite-2
关于typescript - 在 xcode 上编译应用程序时出现 ionic3 sqlite 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47815784/