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!

I am having the same issue in 12.5.1 :(

the same issue on 13 RC

I just updated all packages that were getting errors. Just make sure the version of the package has changed. After updating, clear the build folder and try again. It helped me

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