Configure binary Target from "http" schemes

Hi,
Xcode 12.2/swift 5.3.1
i am trying adding:

.binaryTarget(
name: "PackageName",
url: "http://MyLibraryRepo.domen/MyLibrary.zip",
checksum: "checkSum_value"
),

All values ​​are not real, given only for clarity.

Im getting error from xcode: Invalid URL scheme for binary target 'MyLibrary'; valid schemes are: https

We want to use the http repo, can we do something about it?

Thanks for any help/guidance in advance!

HTTP is inherently insecure.

You could download the binary and upload it to a server that supports HTTPS..

Okay, workaround for me.

I'm created swift package with dependencies binaryTarget

Package.swift:

let package = Package(
    name: "PackageName",
    platforms: [.iOS(.v10)],
    products: [
        .library(
            name: "PackageName"
            targets: ["PackageName", "MyLibrary"]),
    ],
    dependencies: [],
    targets: [
        .target(
            name: "MyLibrary",
            dependencies: []),
        .binaryTarget(
            name: "MyLibrary",
            path: "./MyLibrary.xcframework")
    ]
)

and used this package

hi could you plz introduce how you wrap a .zip to it ?

i don’t use zip. I use xcframework (usually he inside zip)