skip to Main Content

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

let package = Package(
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?

2

Answers


  1. Binary Target name should match the name of the module defined by xcframework.

    Login or Signup to reply.
  2. This may also happen if you have used ditto without –keepParent argument to compress the framework. source

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search