lf-araujo
(Lf Araujo)
1
Hi everyone, I have a quick question.
Recently moved to ubuntu 18.04 and installed swift 4.2-dev, however one of the projects I am trying to build is giving me this simple SPM manifest error:
https://github.com/lf-araujo/sqlite.git @ 3.19.2: error: manifest parse error(s):
/tmp/TemporaryFile.Poe5sN.swift:8:5: error: argument 'dependencies' must precede argument 'targets'
dependencies: [
~~~~^~~~~~~~~~~~~~~
The SPM file reads:
// swift-tools-version:4.0
import PackageDescription
let package = Package(
name: "SQLite",
products: [.library(name: "SQLite", targets: ["SQLite"])],
dependencies: [],
targets: [
.target(name: "CSQLite", dependencies: []),
.target(name: "SQLite", dependencies: ["CSQLite"])
]
)
I have tried several combinations, as it is dependencies is preceding target. What am I missing here?
The author writes:
I found the solution, i did not tag the repo. Please remove the post, many thanks
Closing, but leaving the post up in case other people have the same problem.