The subclass of NSIncrementalStore causes infinite recursion after iOS upgrade.

Number:rdar://1456456465 Date Originated:15 August, 2019
Status:New Resolved:
Product:Core Data Product Version:iOS 13 beta 6
Classification:Bug Reproducible:YES
This issue is only reproducible when the app fetches incremental store metadata via metadataForPersistentStoreOfType: URL: error: method after upgrade to iOS 13 beta 6. 

Inside NSIncrementalStore subclass I have code like this: 

- (BOOL)loadMetadata:(NSError *__autoreleasing *)error {
    NSURL *storeURL = [self URL];

    NSDictionary *metadata = @{NSStoreUUIDKey: <#key loaded from backing data store#>,
                               NSStoreTypeKey: @"XYZMyIncrementalStore"};
    [self setMetadata:metadata];
    return YES;

The bug isn't reproducible with freshly installed apps.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!