Only your App Intents claimed in AppShortcuts must be in the main target. Other AppIntents, such as those exposed to users for Shortcuts app scripting, can reside in an xcframework. It is unclear based on documentation (and its known omissions) if there are other limitations, such as AppIntents that may be used for widget buttons, live activities, or other framework interactions.