swift2 - Swift 2.0 import and compile with sqlite3 library -
trying test sqlite swift 2 cannot make correct build when adding libsqlite3.0.tbd file on link binary libraries. tried add libsqlite3.dylib /usr/lib following error.
ld: library not found -lsqlite3 clang: error: linker command failed exit code 1 (use -v see invocation)
any idea on how can correctly build library. empty project testing. lot in advance.
seeing here well. assuming 'tbd' means 'to done', in, library still needs built osx 10.11 sdk. should disappear in next beta...
meanwhile, can fixed going project's settings -> build phases -> link binaries. click '+', click 'add other'. hit cmd-shift-g , navigate /usr/lib. there, can select libsqlite3.dylib. project should build without error.
in order prevent errors when moving xcode project around, make sure reference libsqlite3.dylib uses absolute path (click on .dylib in file list, go properties pane , select 'absolute path')
Comments
Post a Comment