I am trying to import a framework into swift using the Swift Package manager because a Pod is not available for it. The import does not appear in the project classes and none of its functions are available. I am currently running Swift 3.1 and have done the following in terminal: swift build, swift package generate-xcodeproj, and cleaned the project. Here is my Package.swift:
// swift-tools-version:3.1
import PackageDescription
let package = Package(
name: "MyPackage",
dependencies: [
.Package(url: "https://github.com/WeirdMath/Scrape.git", majorVersion: 1)
]
)
I have gotten the following output in terminal:
-Compile Swift Module 'MyPackage' (2 sources)
-note: you may be able to install libxml-2.0 using your system-packager: brew install libxml2
Is there a way to compile the package further or to install libxml? Note: the frameworks libxml2.0 & libxml2.2 are already installed.