Error: 'Unsupported predicate in fetch options: mediaType == 2'
I'm trying to use smartAlbum to generate an array of either only videos or only photos or both. You can see my code below: PHFetchResult *collectionList = [PHCollectionList fetchMomentListsWithSubtype:PHCollectionListSubtypeMomentListCluster options:nil]; PHFetchOptions *options = nil; if (self.xSelected) { options = [[PHFetchOptions alloc] init]; options.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"creationDate" ascending:NO]]; options.predicate = [NSPredicate predicateWithFormat:@"mediaType = %d",PHAssetMediaTypeImage]; } if (self.ySelected) { options = [[PHFetchOptions