AppDistributor.current never returning

I try to access the AppDistributor.current (using try await) and the property never seem to return nor throw.

The code I'm using looks like this:

        do {
            print("accessing current")
            let current = try await AppDistributor.current
            print("current obtained")
            switch(current) {
            case .appStore:
                return "AppStore"
            default:
                return "Unknown"
            }
        } catch {
            return "Exception: \(error)"
        }

But the log only shows the accessing current and never the current obtained. Trying to step in the property starts with some assembly, but at some point, the debugger just never returned. I join a full Swift file of a sample test I'm using:

AppDistributor.current never returning
 
 
Q