lemonhead94 / TagLibIOS

TagLibIOS is a wrapper for the TagLib Audio Meta-Data Library.
Other
13 stars 13 forks source link

Package error: Has no package.swift manifest #3

Open intellign opened 2 years ago

intellign commented 2 years ago

I'm trying to install, but it's not working after updating to Xcode 13. Any help will be appreciated.

Screen Shot 2022-07-04 at 1 26 54 AM
lemonhead94 commented 2 years ago

Sorry I'm not actively maintaining this four year old repository anymore, but based on the error message I would into the way Swift Frameworks are nowdays handled with Package.swift rather than modulemap. I'm open to check a PR if you are trying to solve this issue. However, I believe there are much better options than TagLib at this point for tag management in Swift as this was only for a hobby project of mine back then...

intellign commented 2 years ago

@lemonhead94 Thank you for the reply, I'm trying to solve the issue and any help will be fine.

There are no better Taglibs at the moment, unless its for only mp3

intellign commented 2 years ago

I just started learning swift but this is what I currently what i have for package.swift

Hopefully someone can make it work

// swift-tools-version:5.3

import PackageDescription

let package = Package(
    name: "TagLibIOS",
    defaultLocalization: "en",
    products: [
        .library(
            name: "TagLibIOS",
            targets: ["TagLibIOS"]
        )
    ],
    dependencies: [],
    targets: [
        .target(
            name: "TagLibIOS",
            dependencies: [],
            path: "./TagLibIOS",
            exclude: ["Info.plist"]
        ),
        .testTarget(
            name: "TagLibIOSTests",
            dependencies: ["TagLibIOS"],
            path: "./Example/TagLibIOS",
            exclude: ["Info.plist"]
           // resources: [.process("./TagLibIOS/Classes/taglib")]

        )
    ],
    swiftLanguageVersions: [.v5]
)

Error:

Screen Shot 2022-07-04 at 9 52 17 AM