I'm pretty new to iOs development and I am trying to follow this tutorial
Everything seemed to be working alright but when i created the ModelManager class the code fails to build with the following errors
class ModelManager{
let sharedInstance = ModelManager()
class func getInstance() -> ModelManager
{
if(sharedInstance.database == nil) //Instance member 'sharedInstance' cannot be used on type 'ModelManager'
{
sharedInstance.database = FMDatabase(path: Utility.getPath("FirstAscent.sqlite")) ///Use of unresolved identifier 'FMDatabase'
}
return sharedInstance //Instance member 'sharedInstance' cannot be used on type 'ModelManager'
}
}
Earlier in the tutorial I also could not find the libsqlite3.0.dylib
file to link it as a binary with my libraries but I have linked the .tbd
file instead.
I also copied the fmdb into the folder in my project as directed.
Any suggestions would be appreciated