No Such Module 'Socketio'

I am using package manager to import SocketIO library in my swift project but it gives me this error:

No Such Module

I have made changes in package.resolved as well but still I am getting this error and I don't find any dependencies in Target Dependencies under build phases it has 0 items.

I have made changes in package.swift to import this library.

I'm using Swift version 4.2 and Xcode above 10.0.

Here is my Package.swift:

import PackageDescription

let package = Package(
  name: "VV",
  dependencies: [
    .package(url: "", .upToNextMinor(from: "13.0.0"))
  ],
  targets: [
    .target(name: "VV", dependencies: ["SocketIO"], path: "./Sources")
  ]
)

The Package.resolved:

{
  "object": {
    "pins": [
      {
        "package": "SocketIO",
        "repositoryURL": "",
        "state": {
          "branch": null,
          "revision": "b6a8984ce0b9926dd68421b6b6",
          "version": "13.0.0"
        }
      },
      {
        "package": "Starscream",
        "repositoryURL": "",
        "state": {
          "branch": null,
          "revision": "ebdc260ea69c624b5cd15d3a49d6",
          "version": "3.0.6"
        }
      }
    ]
  },
  "version": 1
}
7
Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article