Hello fellow developers,
I’m posting this short message because I’m trying to add WeatherKit to my application, but I’m running into a problem.
I have correctly declared my application on Apple’s website under Certificates, IDs & Profiles, and I have checked WeatherKit.
However in Xcode, I do not have the option to add WeatherKit in Signing & Capabilities.
The option doesn’t appear even though I have the Automatically manage signing box checked.
What can I do to resolve this issue?
Thank you for your response.
From your Xcode screenshot, it looks like you're trying to add a new target to your app, and searching for a WeatherKit starting point. Adding a new target to your app is not the same as adding a capability. If you close that dialog, and look at the screen right behind it in Xcode (labeled Signing & Capabilities), you'll see a button named "+ Capability" where you can add the WeatherKit capability to an existing iOS app target.
If you haven't seen it yet, also check out our sample code project and follow the instructions in the ReadMe to see how to configure and get starting using WeatherKit in an app. The capabilities screen I mention above looks like this in a freshly downloaded copy of that sample app.
— Ed Ford, DTS Engineer