WeatherKit weatherFor never returns

Hi,

I'm trying to work with WeatherKit. I've added the capability to the App ID as well as the capabilities in Xcode. Still after more than a day, in simulator I get 401 error, and on device even stranger - there weatherFor function is called but NEVER returns or throws an exception.

try {
                let weatherService = WeatherService()
                let weather = try await weatherService.weather(for: location)
print(weather) //never gets called
} catch {
... // never called on device, always called on simulator

Any one has an idea how to get it to work?

WeatherKit weatherFor never returns
 
 
Q