I also started to get a similar crash when trying to save the background context after using performAndWait.
let backgroundContext = container.newBackgroundContext()
backgroundContext.performAndWait {
...
}
try backgroundContext.save()
The execution stops showing:
0x7fff250fb6eb <+3618>: movq %rbx, %rdi
0x7fff250fb6ee <+3621>: callq 0x7fff2519445a ; _PFAssertSafeMultiThreadedAccess_impl> 0x7fff250fb6f3 <+3626>: jmp 0x7fff250fa905 ; <+60>
0x7fff250fb6f8 <+3631>: callq 0x7fff253bf730 ; symbol stub for: objc_exception_rethrow
0x7fff250fb6fd <+3636>: ud2
CoreData`+[NSManagedObjectContext Multithreading_Violation_AllThatIsLeftToUsIsHonor]:
0x7fff25194769 <+0>: pushq %rbp
0x7fff2519476a <+1>: movq %rsp, %rbp
0x7fff2519476d <+4>: callq 0x7fff253bf78a ; symbol stub for: objc_opt_self> 0x7fff25194772 <+9>: ud2
Post
Replies
Boosts
Views
Activity
Same for me today :-(
I have a similar issue and haven't found any solution yet. It is obviously a problem with iOS 17 because on iOS 16 it used to work as expected.