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?

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.

Terms of Service

Privacy Policy

Cookie Policy