Commit e42cf32c authored by Tobias's avatar Tobias Committed by Felix Paul Kühne
Browse files

we don't need to set the group path anymore

parent 39e59916
......@@ -43,18 +43,7 @@ static NSString *const VLCDBUpdateNotificationRemote = @"org.videolan.ios-app.db
- (void)awakeWithContext:(id)context {
[super awakeWithContext:context];
NSURL *groupURL = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:@""];
// if something went wrong with the entitlements in the Simulator
if (!groupURL) {
NSArray *pathComponents = [[[NSBundle mainBundle] bundlePath] pathComponents];
pathComponents = [pathComponents subarrayWithRange:NSMakeRange(0, pathComponents.count-4)];
NSString *groupPath = [[NSString pathWithComponents:pathComponents] stringByAppendingPathComponent:@"Shared/AppGroup/"];
groupURL = [NSURL fileURLWithPath:groupPath];
MLMediaLibrary *mediaLibrary = [MLMediaLibrary sharedMediaLibrary];
mediaLibrary.libraryBasePath = groupURL.path;
mediaLibrary.additionalPersitentStoreOptions = @{NSReadOnlyPersistentStoreOption : @YES};
if (context == nil) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment