Failure to create Database using couchbase lite in swift


#1

when I try to run my iOS project with this framework in an app I get the following errors:

2015-12-03 20:55:30.554 CouchBase_Swift[15993:1314218] WARNING: Upgrade skipped: Database upgrading class is not present.
2015-12-03 20:55:32.676 CouchBase_Swift[15993:1314218] *** ASSERTION FAILED: CBLManager.storageType is ‘SQLite’ but no CBL_SQLiteStorage class found
2015-12-03 20:55:32.679 CouchBase_Swift[15993:1314218] *** Assertion failure in -CBLDatabase(Internal) open:, /Users/jenkins/jenkins/workspace/couchbase-lite-ios-builds/couchbase-lite-ios/Source/CBLDatabase+Internal.m:171
2015-12-03 20:55:32.681 CouchBase_Swift[15993:1314218] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Assertion failed: CBLManager.storageType is ‘SQLite’ but no CBL_SQLiteStorage class found’
*** First throw call stack:
(0x24f8d0d7 0x33629c77 0x24f8cfad 0x25c8dc23 0x851d7 0x8c4ab 0x75605 0x463c0 0x46644 0x2864e3fb 0x47280 0x33bf7aaf)
libc++abi.dylib: terminating with uncaught exception of type NSException

Any ideas what would be causing this? how to solve this problem?


#2

It looks like a classpath issue but I don’t really know much about Swift. Maybe @jamiltz can help.


#3

@pnikumbh Did you follow the steps in this guide to import the Couchbase Lite dependencies in your project? http://developer.couchbase.com/documentation/mobile/1.1.0/develop/training/build-first-ios-app/create-new-project/index.html

It looks like sqlite isn’t linked in your project.

James


#4

@jamiltz thanks! its work for me. I had added dependencies but, it wrong thats why I was create to fail database.