Can someone help me fix these errors? Swift changed and I don't know how to change these to make it work with the new version:
This one gives the following error:
Cannot invoke createDirectoryAtPath with an argument list of type (SwiftCoreDataHelper.Type, withintermediateDirectories: Bool, atrributes: NilLiteralConvertible, error:inout NSError?)
NSFileManager.defaultManager().createDirectoryAtPath(SwiftCoreDataHelper, withIntermediateDirectories: true, attributes: nil, error: &error)
The next couple just give me that 'error' is an extra argument:
if storeCoordicator.addPersistentStoreWithType(NSSQLiteStoreType, configuration: nil, URL: url, options: nil, error: &error){
if (error != nil){
print(error!.localizedDescription)
abort()
}
}
let items: NSArray = managedObjectContext.executeFetchRequest(fetchRequest, error: nil)