Ensuring that AppIntents defined in an XCFramework are properly registered and callable from a Widget involves several important steps and considerations. Here’s a clear guide to help you set this up:
MyIntent class is public? Yes (Must be accessible outside the framework)
public struct MyIntent: AppIntent {
// intent implementation
}
Referenced in main app? Yes (Ensures registration/discovery)
Imported in widget target? Yes (For usage in widget code)
In your widget target, import the XCFramework and use the AppIntent as needed.
Unclear if that is the case in your code from question text.
import MyXCFramework
// Use MyIntent in your widget code
Framework embedded & signed? Yes (For runtime discovery)
Make sure all of those steps are met for your use case to work as expected.