简体   繁体   中英

Can't use Swift Package Manager with my library

I have an open source Swift camera framework called Lumina , and I would like to be able to use it with all three main iOS dependency management systems. (Cocoapods and Carthage work fine.)

All of my tags follow semantic versioning rules, but the titles have the letter "v" before them, like so:

Lumina 的标签列表

For the library, the manifest Package.swift file reads like so:

import PackageDescription

let package = Package(
    name: "Lumina")

In another project, I wanted to test that SPM works and uses the latest version of my framework (currently v0.8.4). I created a Single View Application in Xcode 9.0 from scratch, and added the following Package.swift file to the root directory:

import PackageDescription

let package = Package(
    name: "SwiftPMLumina",
    targets: [],
    dependencies: [
        .Package(url: "https://github.com/dokun1/Lumina.git", majorVersion: 0, minor: 8)
    ]
)

When I do this, the CLI says error: unsatisfiable I have also tried not specifying a minor version, and specifying a specific version string (such as "v0.8.4" ) to no avail.

What do I have to do to properly build this library with SwiftPM, and/or what support do I have to add to the library itself?

只需在您的框架中添加没有初始“v”的标签,例如“0.8.4”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM