Getting error when integrating binary framework in SPM, Does not contain expected binary artifact

I am creating an SPM using the binary framework. I upload a zip file on the server and that link is used in SPM.

name: "MyDemoPackage",
platforms: [
    .iOS(.v13)
],
products: [
    
    .library(
        name: "MyDemoPackage",
        targets: ["MyDemoPackage"]),
],
dependencies: [
    
],
targets: [
    
    .binaryTarget(
        name: "MyDemoPackage",
        url:"https:domain.com/frameork.zip",
        checksum: "29725502a0b4e61c375f71eec3d5432ac84c")           
]
)

After compilation shows an error

Showing Recent Messages downloaded archive of binary target 'MyDemoPackage' does not contain expected binary artifact 'MyDemoPackage'.

I am unable to figure out how to resolve this error. Can anyone help me out?

I'm assuming that the correctness of the url is not the issue and only to hide where the *.zip actually located. Package example from the Apple docs here seem to align with your approach but that url scheme above is a bit concerning. Is your framework an XCFramework binary?

// swift-tools-version:5.3
import PackageDescription

let package = Package(
    name: "MyLibrary",
    platforms: [
        .macOS(.v10_14), .iOS(.v13), .tvOS(.v13)
    ],
    products: [
        // Products define the executables and libraries a package produces, and make them visible to other packages.
        .library(
            name: "MyLibrary",
            targets: ["MyLibrary", "SomeRemoteBinaryPackage", "SomeLocalBinaryPackage"])
    ],
    dependencies: [
        // Dependencies declare other packages that this package depends on.
    ],
    targets: [
        // Targets are the basic building blocks of a package. A target can define a module or a test suite.
        // Targets can depend on other targets in this package, and on products in packages this package depends on.
        .target(
            name: "MyLibrary"
        ),
        .binaryTarget(
            name: "SomeRemoteBinaryPackage",
            url: "https://url/to/some/remote/xcframework.zip",
            checksum: "The checksum of the ZIP archive that contains the XCFramework."
        ),
        .binaryTarget(
            name: "SomeLocalBinaryPackage",
            path: "path/to/some.xcframework"
        )
        .testTarget(
            name: "MyLibraryTests",
            dependencies: ["MyLibrary"]),
    ]
)
Getting error when integrating binary framework in SPM, Does not contain expected binary artifact
 
 
Q