SPM: Limit targets

Hey,
How can you limit the targets in SPM to only a subset, eg iOS only?
I have a XCFramework which contains only iOS code and I want to include it in my Swift Package, but each time the Package failed because the binary framework does not contains a macOS target.