Core Data complaining about store being opened without persistent history tracking... but I don't think that it has been

Since running on iOS 14b1, I'm getting this in my log (I have Core Data logging enabled):

Code Block
error: Store opened without NSPersistentHistoryTrackingKey but previously had been opened with NSPersistentHistoryTrackingKey - Forcing into Read Only mode store at 'file:///private/var/mobile/Containers/Shared/AppGroup/415B75A6-92C3-45FE-BE13-7D48D35909AF/StoreFile.sqlite'

As far as I can tell, it's impossible to open my store without that key set - it's in the init() of my NSPersistentContainer subclass, before anyone calls it to load stores.

Any ideas?
Compiling against beta 2 and I figured this out. Turns out I was setting my Spotlight delegate before setting the persistent history tracking attribute. Well, setting the Spotlight delegate must open the store and that's where this was coming from... this asserted in b2 making it obvious. The fix was to re-arrange the code so the Spotlight delegate is set last.
Core Data complaining about store being opened without persistent history tracking... but I don't think that it has been
 
 
Q