Home > Enterprise >  Surpress all Core Data console output
Surpress all Core Data console output

Time:07-16

Is there a way to hide all output relating to both CoreData and CoreData: CloudKit from showing in my console? I'm working on another area of my app but don't want to have to manually disable all of this code and instead would like if I could just hide it.

enter image description here

CodePudding user response:

You can get rid of the majority by adding these arguments

-com.apple.CoreData.Logging.stderr 0
-com.apple.CoreData.CloudKitDebug 0
-com.apple.CoreData.ConcurrencyDebug 0
-com.apple.CoreData.MigrationDebug 0
-com.apple.CoreData.SQLDebug 0

To Scheme>Edit Scheme>Run>Arguments>Arguments Passed At Launch

  • Related