Hello,
I have a weird bug that happens only on my M1 Mac mini when buiding for the simulator.
It is the typical table view NSInternalInconsistencyException error:
** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'attempt to insert row 2 into section 0, but there are only 2 rows in section 0 after the update'
The error is related to a table view instantiated and managed by SwiftUI so I have no control over datasources.
The corresponding View has a list fed a fetched result, with this property:
var recipes: FetchedResultsRecipe { fetchRequest.wrappedValue }
The crash happens the I add an object to the NSManagedObjectContext that stores the app contents. It happens when performing a very simple and fundamental flow of my app (a recipes app: the action is "add a recipe", imagine that).
I found the crash yesterday after moving the project to my new M1 Mac.
I verified that there is no crash or warning on the device iPhone XR) or on my older 2018 MacBook Pro.
Anyone with a suggestion, or similar bugs?
Thanks,
Davide
4
0
3.7k