I have managed to install SQLite.swift (0.18.1) using the "Carthage approach".
I can "import SQLite" and do some other stuff, but when I try to open a database, using the following code:
let db = try Connection("~/db.sqlite3")
and run my program (which is far from complete, but I'm taking it step by step), I get the following nasty error:
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /Volumes/MBP-Data/rob/Library/Developer/Xcode/DerivedData/PFA-Analysis_(Swift)-advmptllvbeczrdcmjxnkcpsqogx/Build/Products/Debug/SQLite.framework/Versions/A/SQLite
Reason: image not found
(lldb)
To me it looks like it's related to the command trying to open the database as when I leave that command out, my code runs fine. Trying different paths for the database and different extensions of the database ik sta in de file itself didn't help either. Actually, it made no difference.
As I'm pretty new, I don't know where to start looking, so any help with getting me up to speed is really appreciated!