@lorihc It looks like the new structured logging (OSLog) doesn't work on device for watchOS apps (works fine in the Simulator).

I'm guessing this is a known issue, but I can't find anything in the release notes. FB13017925

Follow

@chockenberry Logging is turned off on customer builds of watchOS unless you have a logging profile installed (this is why we often ask developers to install sysdiagnose—or sometimes more specific—profiles when filing feedback for watchOS).

@lorihc This needs to be documented somewhere.

I spent a fair amount of time thinking I was doing something wrong. And submitted a unnecessary FB…

@chockenberry @lorihc We should put it in the log(1) man page that way someone else can say that it needs to be documented somewhere.

@chockenberry Not unnecessary if you think of it as a feature request.

@chockenberry @lorihc will look into a good place to document (of if needed a reference to existing docs.)

@timtr @chockenberry @lorihc what if Console dot app, when you select a watch without the profile installed, had a “This device needs a profile to show additional log messages” banner at the top?

@lorihc @chockenberry Perhaps add the profile here or a reference to it elsewhere so developers can download it if they need this logging during development?

developer.apple.com/bug-report

@lorihc @chockenberry One to make oslog in apps under development by third party devs work on watchOS devices. Perhaps I misunderstood the issue under discussion; apologies if so.

@GeekAndDad @chockenberry I would expect that to work with the sysdiagnose profile. If you don’t see your oslogs when that profile is installed, it be helpful to know.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.