This sample aims to reproduce 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
- it's impossible to archieve the App because of the xcframework impossible to found
We first had issues with code signing and solved it by adding --deep
as OTHER_CODE_SIGN_FLAGS
.
Now everything is fine when running in debug on device but when trying to archive the App, we have a compilation error saying Xcode doesn’t find the framework A.
Steps to reproduce the issue:
- Open the linked folder
- Open the project located in TestPackage/TestFrameworkApp. This App use the local swift package "PackageTest", which uses the xcframework generated through the "TestFramework" project.
- Try to archive the App