Working with Xcode 8.x and iOS 10.x, I would like to provide an ordered answer for those who want to implement this now.
First you need to change the schema for your application:

As soon as you select โSchemeโ, select โEdit Schemeโ, which should appear at the bottom of the list: 
When opening, make sure you select Run and select Arguments. You will want to copy the following values โโto:
-com.apple.CoreData.ConcurrencyDebug 1-com.apple.CoreData.Logging.stderr 1
Your screen should look like this: 
After starting the application, you will see that it is displayed in the console now that these options are enabled:
CoreData: annotation: Core Data multithreading statements included.
And when you come across this exception thrown, you will most likely see this:
CoreData` + [NSManagedObjectContext Multithreading_Violation_AllThatIsLeftToUsIsHonor ]
You can return to the schematic editor and disable this logging if necessary to prevent future exceptions.
source share