zocario / swiftpm_archive_binary_target

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

swiftpm_archive_binary_target

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:

  1. Open the linked folder
  2. Open the project located in TestPackage/TestFrameworkApp. This App use the local swift package "PackageTest", which uses the xcframework generated through the "TestFramework" project.
  3. Try to archive the App

About


Languages

Language:C 88.0%Language:Swift 7.6%Language:Objective-C 4.4%