cd test_wcdb_framework
git submodule update --init --recursive
mkdir build && cd build
cmake .. && cmake --build .
./test_dep_wcdb_framework
Output
create wcdb database successful!
Run this to build WCDB.framework
cd test_wcdb_framework
git submodule update --init --recursive
mkdir buildx && cd buildx
cmake .. -GXcode && cmake --build .
./Debug/test_dep_wcdb_framework
Output
create wcdb database successful!
After running test_dep_wcdb_framework, if the result is correct, you can see that the database file sample.db has been created.
Also you can use otool -l ./Debug/test_dep_wcdb_framework to see dependent libraries.
Should be
...
Load command 13
cmd LC_LOAD_DYLIB
cmdsize 72
name @rpath/WCDB.framework/Versions/2.1.2/WCDB (offset 24)
time stamp 2 Thu Jan 1 08:00:02 1970
current version 0.0.0
compatibility version 0.0.0
...
to support #1073 Now it is able to build WCDB.framework if run command
cmake .. -GXcode
.Here is a testing sample. test_fixed_wcdb_framework.zip
Run this to build libWCDB.dylib
Output
Run this to build WCDB.framework
Output
After running
test_dep_wcdb_framework
, if the result is correct, you can see that the database filesample.db
has been created. Also you can useotool -l ./Debug/test_dep_wcdb_framework
to see dependent libraries. Should be