SPM resource bundle

Hi there,
When adding resources to a target, SPM (or the host build system) generates the static module extension on Bundle.

If I were to allow users of a framework to choose between adding it manually or through cocoapods or carthage or SPM, is there any way I could check if SPM was being used for compilation, and then use the .module extension, and otherwise provide another way of referring to the bundle (using Bundle(for:) or similar)?

Sincerely,
/morten

#if SWIFT_PACKAGE

2 Likes

Thanks a lot, Jeremy! :slight_smile: