I am trying to distribute an XCFramework through a local Swift Package.
I have installed the same XCFramework on my Target through Pod and it works fine but When I moved it into a Swift Package, I get the error above.
I have also changed the version of Swift in my package but the error persists.
// swift-tools-version: 5.7.1
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "SmileIDentity",
platforms: [.iOS(.v16)],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "SmileIDentity",
targets: ["SmileIDentity", "Smile_Identity_SDK"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
.target(
name: "SmileIDentity",
dependencies: []),
.binaryTarget(name: "Smile_Identity_SDK", path: "./Smile_Identity_SDK.xcframework"),
.testTarget(
name: "SmileIDentityTests",
dependencies: ["SmileIDentity"]),
]
)