Playground with a Logger - Error: Couldn't look up symbols: __dso_handle

Xcode 16.4, MacOS Sequoia 15.5

If I try to use a logger in an Xcode Playground e.g.

import os
import UIKit

var logger  = Logger(subsystem: "Loggertest", category: "")

logger.info("Hello, world!")

I get the following error

error: Couldn't look up symbols: ___dso_handle ___dso_handle Hint: The expression tried to call a function that is not present in the target, perhaps because it was optimized out by the compiler.

Its the logger.info ... that is causing the error.

I have raised FB18214090 but there are no other reports.

I would be grateful if some of you could verify if the Playground runs or errors on your system.

A workaround, still using Logger, would be a great help.

Thanks,

Chris

Playground with a Logger - Error: Couldn't look up symbols: __dso_handle
 
 
Q