No such module "PackageDescription"

I just started with quick 3 and made a simple application in xcode using Swift 3.0. Now I want to add a third-party library using the Swift Package Manager. I follow the installation method mentioned in this link. I created a file Package.swiftthat looks like

import PackageDescription

let package = Package (
name : "SwiftPM",
dependencies : [
.Package(url: "https://github.com/ArtSabintsev/Siren.git", majorVersion: 1)
])

but i get an error No such module "PackageDescription"

+4
source share
1 answer

Package Manager Swift and Xcode are orthogonal. That is, you cannot expect Package.swift to compile in Xcode; it just won't work. Instead, while Xcode does not support the package manager, you need to have two different assemblies: one with the package manager and one with Xcode.

, Swift, Package.swift , , :

swift build

Xcode Xcode, , Package.swift. Siren.git, - Xcode.

+5

Source: https://habr.com/ru/post/1656387/


All Articles