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.