In Xcode 10 the OS_ACTIVITY_MODE
variable with disable
(or default
) value also turns off the NSLog
no matter what.
So if you want to get rid of the console noise but not of your own logs, you could try the good old printf("")
instead of the NSLog since it is not affected by the OS_ACTIVITY_MODE
= disable
.
But better check out the new os_log
API here.