iOS AppIntents “Unable to determine value type for type” when AppEnum belongs to Swift Package

Sorry if I'm in the wrong category for this 🙏 Please see this MRE for clarity: https://github.com/MartinP7r/IntentTest

(I used the example code from https://developer.apple.com/wwdc22/10032 except for deprecation warnings)

The compiler throws an error Unable to determine value type for type IntentPackage.Shelf.

According to comments in this question it's because the type I'm extending to AppEnum is not in the app target's module, but in a Swift Package. And yes, copying Shelf into the target will solve the issue, but I really don't like having to duplicate the types just to make it work and was wondering if there's any way to just use the type from the Swift package and only add the AppEnum conformance in the main target.

Get the best <a href="https://autoservindia.com%22%3Emachines and tools for your vehicle garage</a> and personal vehicle at Autoservindia.com. We are manufacturers and sellers of top-quality tools and machines such as Tire Changer, Wheel Alignment Setup, PUC Machine, and more, all available at the lowest prices. Plus, enjoy 1 year of free maintenance service with your purchase. Visit our website today at https://autoservindia.com/shop to explore <a href="https://autoservindia.com">Best vehicle Garage tools & Machines</a> and select the best equipment for your vehicle needs.

iOS AppIntents “Unable to determine value type for type” when AppEnum belongs to Swift Package
 
 
Q