Swiftpack.co - Package - nicholascross/PackageFrameworks

PackageFrameworks

A swift package executable that allows the generation of frameworks for specific package libraries without maintenance of a related xcode project

Installation

Include the following dependencies in your Package.swift

.package(url: "https://github.com/orta/PackageConfig.git", from: "0.0.1"),
.package(url: "https://github.com/nicholascross/PackageFrameworks.git", from: "0.0.1")

Configuration

By default all frameworks built will be copied to the .build/release directory. This can be customised by specifying a custom PackageConfig in your Package.swift

#if canImport(PackageConfig)
import PackageConfig

let config = PackageConfig([
    "frameworks": [
        "include": [
            "ShellOut.framework"
        ],
        "outputPath": "Frameworks"
    ]
])
#endif

  • include specifies the artifacts to be moved to the output directory.
  • outputPath specifies the location where frameworks will be moved to after they are built

Execution

swift run build-frameworks

Github

link
Stars: 0
Help us keep the lights on

Used By

Total: 0