There is a workaround by defining a dummy C target that includes the XCFramework. This is explained on the forum: https://forums.swift.org/t/swift-package-and-xcframework-target-for-c-library-where-to-include-the-header/51163/6 You will find a link to a sample repository that show how to architecture the project: https://github.com/withuno/UnoSwift // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: IBANKit, products: [ // Products define the executables and libraries a package produces, making them visible to other packages. .library( name: IBANKit, targets: [IBANKit]), ], dependencies: [], targets: [ // Adds the C module as a dependencies to your C sources .target( name: IBANKit, dependencies: [C], path: Sources/IBANKit ), // Create a dummy c package that uses the XCFramework .target( name: C, dependencies: [IBANChecker-Core], pa
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: