I also have had this issue since Beta 1. It fails on the simulator and on device. The code previously worked in iOS 16/macOS 13. I confirmed that I have the correct entitlements enabled.
In the simulator, I get the error mentioned in the original post.
Failed to generate jwt token for: com.apple.weatherkit.authservice with error: Error Domain=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 "(null)"
On device, I get a different error
Unable to decode object=, error=keyNotFound(CodingKeys(stringValue: "humidityMax", intValue: nil), Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "forecastDaily", intValue: nil), CodingKeys(stringValue: "days", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "No value associated with key CodingKeys(stringValue: \"humidityMax\", intValue: nil) (\"humidityMax\").", underlyingError: nil))
I filed feedback separately since I wasn't sure if this was the same problem. The simulator error is filed as FB12539864 and the on-device error is filed as FB12539932.
Post
Replies
Boosts
Views
Activity
This appears to now work on Xcode 15/iOS 17 beta 5.