wcdb icon indicating copy to clipboard operation
wcdb copied to clipboard

【报错】项目中同时添加WCDB 和 WCDB.swift ,编辑报错

Open limeidong opened this issue 8 years ago • 10 comments

The language of WCDB

Objective-C, Swift

The version of WCDB

v1.0.6

The platform of WCDB

iOS

The installation of WCDB

Cocoapods

What's the issue?

因为我的项目之前是 混编,大部分是swift代码,还有一小部分是 objective-c,我想用WCDB 数据库,就在 Podfile 文件中 添加了 ‘pod 'WCDB.swift' 和 pod 'WCDB' ’,安装什么的都没问题。但是编辑的时候 报错 ‘'sqlite3.h' file not found’,请问这个怎么解决,下边是截图。 podfile文件 image

安装后 项目 image

报错 Uploading image.png…

备注:如果项目中 只安装 WCDB.swift,项目可以正常运行,没有任何问题,再安装WCDB 之后,编辑就开始报错

limeidong avatar Jul 29 '18 09:07 limeidong

As the issue template said, please describe your question in English.

RingoD avatar Jul 30 '18 02:07 RingoD

As for your question, it's not supported for installing both WCDB and WCDB.swift due to sqlite3. This will be optimized in future releases.

RingoD avatar Jul 30 '18 02:07 RingoD

ok, thank you,i understand. Please solve this problem as soon as possible.

limeidong avatar Jul 30 '18 05:07 limeidong

Note that it's NOT a bug or an issue. Linking same library multiple time is wrong typically.

RingoD avatar Jul 30 '18 07:07 RingoD

@limeidong Maybe you can try using their dynamic library at the same time with v1.0.7+.

RingoD avatar Sep 10 '18 02:09 RingoD

ok. I will have a try. @RingoD

limeidong avatar Sep 17 '18 06:09 limeidong

I had try what you said, but it faild. image now, their version are V1.0.7+ I clean the Xcode and rebuild ,but show the error: image

limeidong avatar Sep 17 '18 09:09 limeidong

sqlite shouldn't be included in SQLCipher directly please check the latest SQLCipher. sqlite3 could be a standalone pod. WCDBOptimizedSQLCipher forked from an old version of SQLCipher, it should be updated

aelam avatar Dec 25 '18 03:12 aelam

@aelam I don't understand what your issue is. If you have any problem other than this issue, you can open your own one. Currently, this issue is talking about integrating both WCDB and WCDBSwift.

RingoD avatar Dec 25 '18 08:12 RingoD

It's safe to link multiple sqlite libraries in v1.1.0, which will be the next version.

RingoD avatar Feb 22 '19 09:02 RingoD