Unit-test a framework with a custom file-extension

// Given

I have a framework that uses a custom file extension (it is used as a runtime loaded plugin usually, so something like ".plugin" looks nice)


// When

Now I want to write unit tests for some internal parts of this plugin, so I add a unit test bundle to my plugin's project in Xcode.


// Then

The problem is that the unit test can't import the module of the plugin, as it can't find frameworks that don't have a .framework extension.

Is there a way to teach the loader to also check other extensions?

(If I change the "wrapper extension" build setting back to "framework" everything works, but that's not what I want)


I guess a similar problem would arise when I want to write unit-tests for an XPC service?