No such module 'Combine' when archiving app using my Swift package

Hello,
I have a Swift Package, and I use combine in it, everything is good during debug of both the standalone and while running the app using the module.
But as soon as I try to archive my app, my Swift package file to compile on the import of Combine with "No such module 'Combine'".
What did I missed?

2 Likes

Hi Thomas,

I ran into the exact same problem with Xcode 11 beta 4, when adding a library package (which imports Combine) to my app project. Running the app in the simulator works fine, building the release version, however does produces the missing module error.

Did you find out what the problem was?

:white_check_mark: Update: Adding the platform in the package description solved the problem.

2 Likes

I have the same problem but I write a post with a work around for this "issue".

Basically I write a build pre-action and I change the BundleID and the AppName from the shell script.

Take a look to the post: