Hi! I had this problem myself when I started working with WeatherKit in a different project
You can resolve it by going into AppName -> Targets -> Signing & Capabilities and adding the WeatherKit capability. Hope this helps!
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: