Im new with Swift and its tools. I use this extension.
I added a package to dependencies but when I try to import my package
import SwiftyJSON
terminal gives me an error:
error: no such module 'SwiftyJSON'
import SwiftyJSON
^
My Package.swift file:
// swift-tools-version:4.0
import PackageDescription
let package = Package(
name: "swiftpackages",
dependencies: [
.package(url: "https://github.com/SwiftyJSON/SwiftyJSON.git", from: "4.0.0"),
]
)
How I can fix this problem?
swift package updatefrom the same directory where yourPackage.swiftfile is located.SwiftyJsonby the nativeJsonDecoder. It is so much more useful (and so much more swifty :-).