WeatherKit request fail

Hello,

I have an app on the App Store built around WeatherKit and it was working fine, up until this morning when I started seeing errors when using the app.

When debugging using Xcode I see the familiar error

Failed to generate jwt token for: com.apple.weatherkit.authservice with error: Error Domain=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 "(null)"

which, according to what I've read on the forums looks like an authentication error.

Attaching a network debugger to the Simulator, I saw this error:

This I have tried:

  • Verify that WeatherKit is enabled on both Capabilities and App Services tabs on the Dev Portal.
  • Toggle on/off this value and regenerate Provisioning Profiles
  • Uninstall/reinstall
  • Checking that I have API available calls.

Nothing. If I create a new Bundle ID and sign with that, it works correctly. But this is not an option since that will force all my customers to download everything from scratch.

I am getting emails from customers demanding money back and I can't figure out what has happened.

The only thing I can think of, is that I started developing an Apple Watch app to complement the iOS app, but that was last week and everything was working fine.

Hello,

Same problem for me, i added WeatherKit capabilities for iOS and watch targets, both in xcode and developer account also enabled the App Services.

On the watch it is working but on the phone does not, getting the same error

`Failed to generate jwt token for: com.apple.weatherkit.authservice with error: Error Domain=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 "(null)"

What's interesting is that the Widgets work...

And i'm certain that the error started from Sunday to Monday, when I wasn't working...

WeatherKit request fail
 
 
Q