There is a new logging system in iOS 10 and macOS Sierra.
But I can't seem to make it work in Xcode. os_log
is not recognized, and neither is any other function / constant mentioned in the docs.
Use of unresolved identifier 'os_log'
Do I need to link a framework or import a header or something? Am I missing something obvious?
In Swift:
import os os_log("Some message")
In Objective-C:
#import <os/log.h> os_log(OS_LOG_DEFAULT, "Some message");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With