Viewing os_log messages in device console

前端 未结 4 1411
情话喂你
情话喂你 2021-02-04 01:20

I\'m trying to get some logging out of my app through Unified Logging (os_log)

Here\'s the initialization of the log:

var osLog : OSLog = OSLog(subsystem         


        
4条回答
  •  南旧
    南旧 (楼主)
    2021-02-04 01:33

    My os_log went missing after releasing an app to app store. I guess when I built the app for release, the debug option was turned off.

    To enable the logging back... go to Product > Scheme > Edit Scheme > Run Debug ... then check Debug executable.

提交回复
热议问题