Xcframework inside Swift Package doesn't expose public symbols

Hi guys,
I have an issue with an SPM that includes an xcframework with one dependency. I tried different ways to build it, each of them valid from the point of view of SPM but all of them failed when it comes to integrating the SPM into an iOS project.

Here is my Project.swift

let package = Package(
    name: "DoctorSDK",
    products: [
            name: "DoctorSDK",
            targets: ["DoctorSDK", "DoctorCore"]),
    dependencies: [
        .package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", .upToNextMajor(from: "1.6.0"))
    targets: [
            name: "DoctorCore",
            path: "artifacts/DoctorCore.xcframework"
            name: "DoctorSDK",
            dependencies: [
                .product(name: "CryptoSwift", package: "CryptoSwift"),
                .target(name: "DoctorCore")

The issue I have is that when I try to import the module it seems that something fails (no errors on Xcode) but if I jump to the definition of the module I get the following:

import Foundation
import ObjectiveC
import UIKit

// Generated by Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)

public var SWIFT_TYPEDEFS: Int32 { get }

public typealias char16_t = uint_least16_t
public typealias char32_t = uint_least32_t

public typealias swift_float2 = SIMD2<Float>
public typealias swift_float3 = SIMD3<Float>
public typealias swift_float4 = SIMD4<Float>
public typealias swift_double2 = SIMD2<Double>
public typealias swift_double3 = SIMD3<Double>
public typealias swift_double4 = SIMD4<Double>
public typealias swift_int2 = SIMD2<Int32>
public typealias swift_int3 = SIMD3<Int32>
public typealias swift_int4 = SIMD4<Int32>
public typealias swift_uint2 = SIMD2<UInt32>
public typealias swift_uint3 = SIMD3<UInt32>
public typealias swift_uint4 = SIMD4<UInt32>

Everything looks good but I have the feeling that something in the swiftmodule is silently failing.
Thank you in advance.