Just an update
Something is wrong with the bundle id (identifier) of the ios app.
I have tried using directly the weather api: https://weatherkit.apple.com/api/v1/weather/
I have generated a key for weather api from Certificates, Identifiers & Profiles and using that to create a JWT token
Now i have run into the problem again, for the JWT generation the identifier is needed, and if i use my app identifier it fails with this message: {"reason": "NOT_ENABLED"}, this i think means that something is not enabled for this identifier, even tho i have no idea what, as weatherkit capabilities and services are enabled
In the end i have used the identifier of my watch app and with that one it works..
Have no idea why this is happening, but maybe this workaround will also work for you
Post
Replies
Boosts
Views
Activity
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)"