I'm trying to use updated SPM for Swift4 with the following Package.swift
file - PackageDescription API Version 4
import PackageDescription
let package = Package(
name: "Name",
dependencies : [
.package(url: "url", .branch("swift4"))
],
exclude: ["Tests"]
)
I have a correct version of SPM also:
Apple Swift Package Manager - Swift 4.0.0-dev (swiftpm-13081.9)
But I can not build the library by swift build
command. I see the following error:
... error: type 'Version' has no member 'branch'