Think you find that when you run from Xcode it using the schema of the "extension" change to the app name schema and the error goes. You may need to generate it too!
Topic:
App & System Services
SubTopic:
Widgets & Live Activities
Tags: