Tencent / wcdb

WCDB is a cross-platform database framework developed by WeChat.
Other
10.82k stars 1.41k forks source link

Install WCDB Via Dynamic Framework, but build failed #519

Closed zacdaryl closed 4 years ago

zacdaryl commented 5 years ago

The language of WCDB

Objective-C

The version of WCDB

v1.0.5

The platform of WCDB

iOS

The installation of WCDB

Git clone

What's the issue?

Install Via Dynamic Framework

Compile rtree.c /wcdb/sqlcipher/ext/rtree/rtree.c:980:44: No member named 'bCorrupt' in 'struct Rtree' /wcdb/sqlcipher/ext/rtree/rtree.c:3442:43: Use of undeclared identifier 'SQLITE_PREPARE_NO_VTAB'

RingoD commented 5 years ago

I think you should upgrade to the newest version since you are using v1.0.5.

zacdaryl commented 5 years ago

I checkout a new branch from tag v1.0.8.2, and checkout out sqlcipher branch to wcdb, then build, but there is a new error occur:

Undefined symbols for architecture armv7: "_sqlcipher_codec_ctx_set_cipher", referenced from: _sqliterkCryptoSetCipher in sqliterk_crypto.o ld: symbol(s) not found for architecture armv7

Finally, I installed via CocoaPods

RingoD commented 5 years ago

I think you may not update the sqlcipher submodule.

zacdaryl commented 5 years ago

Thanks,after ‘git submodule --init sqlcipher’,sqlcipher‘s error is gone. But, in my *.h file, #import <WCDB/WCDB.h> 'WCDB/WCDB.h' file not found

RingoD commented 5 years ago

Check the wiki first.

Yzc-jason commented 4 years ago

Check out the master,and run Benchmark-WCDB-macOS have a error. "Use of undeclared identifier 'SQLITE_PREPARE_NO_VTAB'"

RingoD commented 4 years ago

master is in preparation. Use the specified tag instead.

moyu011 commented 2 weeks ago

I am using Xcode 16.0 + MacOS 15.0.1 + WDCB 2.1.8 + WCDBOptimizedSQLCipher 1.4.6 development environment, and I have reproduced this issue. How can I resolve it?