I'm encountering the same error message with an app intents extension. As a workaround, I've disabled the extension and added its code to my main app target. I'm not sure if this is also possible in your case.
Topic:
App & System Services
SubTopic:
Core OS
Tags: