Xcode 14 Beta 3 is constantly getting an error with WeatherKit

In the simulator with Xcode 14 beta 3, any request to WeatherKit results in the following error:

[WeatherService] Encountered an error when fetching weather data subset; location=<+41.16107900,-104.80545000> +/- 5.00m (speed -1.00 mps / course -1.00) @ 7/6/22, 3:16:51 PM Mountain Daylight Time,  error=Error Domain=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=0 "(null)"

I haven't had a single request succeed. Has anyone else encounter this?

Post not yet marked as solved Up vote post of tomcomer Down vote post of tomcomer
461 views

Replies

I was getting 401 errors yesterday with beta 2. Today, with beta 3 I am getting the following error:

Error Domain=AMSErrorDomain Code=12 "Mescal Failed" UserInfo={NSLocalizedDescription=Mescal Failed, NSLocalizedFailureReason=SAPInit failed: -42049}

The WeatherKit Capability and App Service have been added to the Identifier, as well as adding the Capability in Xcode, so I believe it should be all set as far as that goes.

  • I started getting the Code=12 "Mescal Failed" error a couple of minutes ago. It was working fine a few hours ago. I searched Google and there is not a whole lot about this error other than this post. I'm using Xcode 14 b3 building on simulators.

    Update: I started running my app on an iPhone 8 Plus running iOS 16 b1 and I am not getting the error. In the simulator, I can toggle between simulated locations and I get the error. Try using a physical device running iOS 16 b1+. Good luck!

Add a Comment

I seem to be getting the error Domain=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors with Xcode 14 beta 3, but it only seems to happen in SwiftUI live previews.

Simulators and devices work fine for me.

  • Follow up: I'm seeing the WDSJWTAuthenticatorServiceListener error on any new device I run the app on. If I had run my app on a device with beta 2, it works, but on any new device that I didn't previously run the app on, it doesn't work.

    It feels like it's only working with tokens generated with beta 2 right now?

  • Yep, that is what it seems like to me too. Maybe the server changes are trailing the betas.

  • Were you able to get passed this issue? It is still happening for me.

I'm getting this:https://developer.apple.com/forums/thread/709578