I am writing a Swift framework that contains a Siri intentdefinition file and code that is used both from the main app, from a Today extension, and from a Siri intent extension. I am using Cocoapods to distribute the framework (it is in a private repo, so I cannot share the framework itself). This works well for compiling, linking, and executing code from within the app and the Today extension.
The app (or Today extension) successfully donates the intent when the user performs the corresponding action. I can then go to System Settings/Siri/Suggested Shortcuts and record a "personalized phrase" to trigger the intent.
When I invoke Siri using the recorded phrase, she responds with "I don't see an app for that. You'll need to download one."
I also noticed the following error message when donating the intent:
[Intents] -[INIntentResponse init] App proxy < com.company.appID file:///Users/username/Library/Developer/CoreSimulator/Devices/.../data/Containers/Bundle/Application/.../AppName.app :0>> doesn't contain intent nameOfIntent, falling back to current bundle
The same code worked fine until I moved it into a framework, so I know the code is correct.