From eced8f2e93c717682696ff30e563e037fb2927e7 Mon Sep 17 00:00:00 2001 From: John Rommel Estropia Date: Mon, 12 Jun 2017 22:39:06 +0900 Subject: [PATCH] fixed compile error on release mode --- Sources/DataStack.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Sources/DataStack.swift b/Sources/DataStack.swift index 726ffb6..a42fe81 100644 --- a/Sources/DataStack.swift +++ b/Sources/DataStack.swift @@ -34,6 +34,11 @@ import CoreData */ public final class DataStack: Equatable { + /** + The resolved application name, used by the `DataStack` as the default Xcode model name (.xcdatamodel filename) if not explicitly provided. + */ + public static let applicationName = (Bundle.main.object(forInfoDictionaryKey: "CFBundleName") as? String) ?? "CoreData" + /** Convenience initializer for `DataStack` that creates a `SchemaHistory` from the model with the specified `modelName` in the specified `bundle`. @@ -477,8 +482,6 @@ public final class DataStack: Equatable { internal static var defaultConfigurationName = "PF_DEFAULT_CONFIGURATION_NAME" - internal static let applicationName = (Bundle.main.object(forInfoDictionaryKey: "CFBundleName") as? String) ?? "CoreData" - internal let coordinator: NSPersistentStoreCoordinator internal let rootSavingContext: NSManagedObjectContext internal let mainContext: NSManagedObjectContext