The subclass of NSIncrementalStore causes infinite recursion after iOS upgrade.

Originator:ysirko
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.


https://www.dropbox.com/s/hj2nl3oenm5ycly/app%20crash.png?dl=0
https://www.dropbox.com/s/ze56t153jlvx1lc/Screen%20Shot%202019-08-22%20at%2010.44.40%20AM.png?dl=0

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!