I’ve been away from this for a few days on family business. I spent several hours, today, trying to figure out how to do something with your Xcode project from GitHub or how to incorporate it into my Xcode projects that I write…I’m lost!
The problems:
your Xcode project compiles but doesn’t do anything – I tried, but I can’t determine where to put my code
my Xcode project has AppDelegate and ViewController files, as normal – I tried, but I can’t figure out how to correctly copy your files into my project so I can use them
Haven’t given up on a Swift API… but until that arrives I have been experimenting with FDB by using Chris Lattner’s Python interoperability thru Swift playground (mentioned that in an earlier post).
Been fiddling with timing… In a Swift Playground timing can be significantly improved by moving source code to the Playground’s Sources Folder – because it gets precompiled and doesn’t go thru the REPL in the main window.
I got some pretty good results… but first, the following is from the FDB Benchmarking writeup:
For some reason I can’t get C bridging working. CFoundationdb doesn’t build with error error: 'fdb_c_options.g.h' file not found
(in shim.h)
It just can’t find header files. However, if I set full (and hence platform-specific) paths to headers (e.g. /usr/local/include/foundationdb/fdb_c.h), package builds, but with warning ld: warning: Auto-Linking library not found for -llibfdb_c
and if I try to use like anything from fdb library, I get error
Undefined symbols for architecture x86_64:
"_fdb_get_max_api_version", referenced from:
_main in main.swift.o
which is highly confusing. It seems like it just can’t see the dylib (I think I tried every possible form of link value in modulemap, none of them seem to work).
Can anyone help? I would really like to use fdb in my project, but the stupidity of situation is frustrating me beyond measure
I’ve never done such things before… I mean, it’s very new subject area for me (pkgconfigs etc). So I think I should focus on the wrapper. By the way here it is: https://github.com/kirilltitov/FDBSwift