Performing Widget Intents in-app on iOS

I'm currently adding widgets to Podcatcher and one issue I've run into that's not very well documented is how to trigger an App Intent — for example, to start playing a Podcast — from a widget, ensuring that the intent is performed in the app. There are two problems that need to be solved: The intent has to be a part of both the main app target and the widget extension target. How do we avoid…