Can’t archive App that uses a swift package with an xcframework

Hello,

We have a situation where:

  • we have a library A distributed as an xcframework.
  • this library A is used in a swift package B that includes it as a binary target.
  • our final iOS App uses our swift package B with swift package manager.

We first had issues with code signing and solved it by adding a build phase that code sign the framework A when building the App. Now everything is fine when running in debug but when trying to archive the App, We have a compilation error saying Xcode doesn’t find the framework A.. we try a lots of different setup but didn’t find any solution to fix this compilation error.

Any idea on how we could solve this issue?

Thanks!

2 Likes

Here is a link to a sample project if it can help to reproduce :)

Terms of Service

Privacy Policy

Cookie Policy