not working

I’m working with Xcode 8 with swift on MacOS Sierra in an iOS app. I realized a few months ago that the SQLDebug stops working… (It used to worked in my app)…

I have created a new empty project with the coredata flag enabled..Then I created an entity with attributes and I executed this func in the ViewDidLoad and Xcode is NOT logging the sql

  • How do you distribute beta iOS apps to your team without using test flight?
  • iOS app “next” key won't go to the next text field
  • Play AVMutableComposition with AVPlayer?
  • ios App - crash on multiple segue at the same time (going to other segue while one is animating)
  • Read data through iPhone audio jack
  • Storing blobs in external location using built-in CoreData option
  • func fetchAllData(){
        //1 delegate
        let appDelegate =  UIApplication.shared.delegate as! AppDelegate
        let managedContext = appDelegate.persistentContainer.viewContext
        //2 prepare fetch request
        let fetchRequest: NSFetchRequest<NSFetchRequestResult> = NSFetchRequest(entityName:"Entrenamientos")
        //3 make fetch
            let fetchedResults =  try managedContext.fetch(fetchRequest) as! [NSManagedObject]

    Solutions Collect From Internet About “ not working”

    Core Data uses the new unified logging framework starting with iOS 10. There is a known issue in Xcode that interferes with the logging, but you can use 1 to get around it.

    EDIT: For clarity, you must specify 1 in addition to the above. This actually enables the SQL trace, while the above will let you see it.


    As part of this transition, Core Data honors user defaults to log to os_log, stderr, or both with ‘’ or ‘’. Due to a known issue in Xcode, it may be useful to toggle stderr logging on during debugging.

    You might also look in the new Console app, which will display logs from devices connected to your Mac.