diff --git a/Pod/Classes/HCDCoreDataStack.m b/Pod/Classes/HCDCoreDataStack.m index f9e7678..277d0b6 100644 --- a/Pod/Classes/HCDCoreDataStack.m +++ b/Pod/Classes/HCDCoreDataStack.m @@ -124,13 +124,11 @@ - (NSURL *)_defaultStoreURL return [libraryURL URLByAppendingPathComponent:self.modelName]; #else NSBundle *bundle = [NSBundle bundleForClass:[self class]]; - NSString *bundleIdentifier = [[bundle infoDictionary] objectForKey:kCFBundleIdentifierKey]; + NSString *bundleIdentifier = [[bundle infoDictionary] objectForKey:(__bridge NSString *)kCFBundleIdentifierKey]; NSURL *appSupportURL = [[[NSFileManager defaultManager] URLsForDirectory:NSApplicationSupportDirectory inDomains:NSUserDomainMask] lastObject]; appSupportURL = [appSupportURL URLByAppendingPathComponent:bundleIdentifier]; NSError *error = nil; - NSDictionary *properties = [appSupportURL resourceValuesForKeys:@[NSURLIsDirectoryKey] error:&error]; - if (error.code == NSFileReadNoSuchFileError) { [fileManager createDirectoryAtPath:appSupportURL.path withIntermediateDirectories:YES attributes:nil error:&error]; }