diff --git a/SuperRecord/SuperCoreDataStack.swift b/SuperRecord/SuperCoreDataStack.swift index 4e1845f..b0d8250 100644 --- a/SuperRecord/SuperCoreDataStack.swift +++ b/SuperRecord/SuperCoreDataStack.swift @@ -15,7 +15,7 @@ import UIKit import CoreData let infoDictionary = NSBundle.mainBundle().infoDictionary as NSDictionary? -let stackName = infoDictionary!["CFBundleName"] as! String +let stackName = infoDictionary!["CFBundleName"]!.stringByReplacingOccurrencesOfString(" ", withString: "_") let storeName = stackName + ".sqlite" let applicationDocumentsDirectory: NSURL = {