yeatse / KingfisherWebP

Elegantly handle WebP format with Kingfisher.
MIT License
304 stars 73 forks source link

Swift package manager compiler errors #53

Closed JanRajtr closed 2 years ago

JanRajtr commented 3 years ago

When importing into another package as dependency the following errors are returned when compiling:

Snímek obrazovky 2021-03-30 v 13 00 16

The swift package file looks like this:

let package = Package(
    name: "SomePackage",
    platforms: [
        .iOS(.v13)
    ],
    products: [
        // ...
    ],
    dependencies: [
        // ...
        .package(
            name: "Kingfisher",
            url: "https://github.com/onevcat/Kingfisher.git",
            "6.2.0"..<"7.0.0"
        ),
        .package(
            name: "KingfisherWebP",
            url: "https://github.com/Yeatse/KingfisherWebP.git",
            "1.3.0"..<"2.0.0"
        )
    ],
    targets: [
         .target(
            name: "SomePackage",
            dependencies: [
                 // ...
                "Kingfisher",
                "KingfisherWebP"
            ],
            resources: [.process("Resources")]
        )
    ]

Thank you

andreyoshev commented 3 years ago

Same

yeatse commented 3 years ago

It seems SPM doesn't recognize the C part of this library.😳 I'll investigate into it.

yeatse commented 2 years ago

Fixed by https://github.com/Yeatse/KingfisherWebP/pull/54