title: os_log messages not showing for archived catalyst application
body: <p>I am using a Wrapper in a personal Swift package to use <code>os_log</code> to print log messages to console:</p>
  
  <pre class="lang-swift prettyprint-override"><code>import Foundation
  import os
  
  public class ATLogger {
  
      public static let shared = ATLogger()
  
      public func logToConsole(file: String = #file, function: String = #function, line: Int = #line, message: String, type: OSLogType) {
          let osLog: OSLog
          if let subsystem = Bundle.main.bundleIdentifier {
              osLog = OSLog(subsystem: subsystem, category: "Appfrosch")
          } else {
              osLog = .default
          }
          let file = String(file.split(separator: "/").last ?? "")
  
          os_log("*** %{public}s/%{public}s, line %d -- %s", log: osLog, type: type, file, function, line, message)
      }
  }
  </code></pre>
  
  <p>I then call it where I see it fit, e.g. in my SceneDelegate to log the start of the app like so:</p>
  
  <pre class="lang-swift prettyprint-override"><code>ATLogger.shared.logToConsole(message: "Application started", type: .default)
  </code></pre>
  
  <p>This works fine when running the catalyst version of the applications from Xcode on macOS for all log levels – i.e. all messages are visible on the Console (I have Debug and Info activated):</p>
  
  <p><a href="https://i.stack.imgur.com/l4EQR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l4EQR.png" alt="enter image description here"></a></p>
  
  <p>My problem is that when I make an artefact of said application by archiving and then copy it to my system, the so started application does <em>not</em> show these same messages on Console.</p>
  
  <p><code>sudo log stream --level default | grep Appfrosch</code> gives the same result: the applications logs successfully when run from Xcode, but not when run as an artefact.</p>
  
  <p>What might I be missing?</p>