paulw11 / Seam3

Cloudkit based persistent store for Core Data
Other
209 stars 25 forks source link

SMStore.executeInResponseToFetchRequest crash in iOS 12 #86

Closed darrinhenein closed 6 years ago

darrinhenein commented 6 years ago

App that worked in 11.4.1 is now crashing on iOS 12.

Seems the crash is happening during a fetch from an NSFetchedResultsController. Fabric crash log shows:

Fatal Exception: NSInvalidArgumentException
The entity <redacted> is not visible to this managed object context.

Stack trace:

Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x1a635b030 (Missing)
1  libobjc.A.dylib                0x1a56144e8 (Missing)
2  CoreData                       0x1a8e82480 (Missing)
3  Seam3                          0x10143be14 specialized SMStore.executeInResponseToFetchRequest(NSFetchRequest<NSFetchRequestResult>, context : NSManagedObjectContext) throws -> [Any] (SMStore.swift:721)
4  Seam3                          0x10142e618 SMStore.execute(NSPersistentStoreRequest, with : NSManagedObjectContext?) throws -> Any (SMStore.swift:593)
5  Seam3                          0x10142e8f4 @objc SMStore.execute(NSPersistentStoreRequest, with : NSManagedObjectContext?) throws -> Any (SMStore.swift)
[...]
paulw11 commented 6 years ago

Hi Darrin,

Thanks for the report.

I haven't yet started looking at iOS 12 compatibility; I normally wait until Apple gets closer to release and things have settled down a bit.

darrinhenein commented 6 years ago

Beta 2 seems to resolve the issue. Sorry for the noise, Paul! Love the library :)

paulw11 commented 6 years ago

Thanks for the update. This is why I hold off on betas for a while; the first few can be a bit flaky