nixzhu / MonkeyKing

MonkeyKing helps you to post messages to Chinese Social Networks.
MIT License
2.76k stars 240 forks source link

change: unified binary target and source target module name #199

Closed CodeEagle closed 3 years ago

CodeEagle commented 3 years ago

By changing the MonkeyKing.xcframework to MonkeyKingBinary.xcframework (also MonkeyKing.xcframework.zip -> MonkeyKingBinary.xcframework.zip ) for the binary target, We now can use MonkeyKing as original Module name, for both binary or source code target

let package = Package(
    name: "MonkeyKing",
    platforms: [.iOS(.v9)],
    products: [
        .library(
            name: "MonkeyKing",
            targets: ["MonkeyKing"]
        ),
        .library(name: "MonkeyKingBinary", targets: ["MonkeyKingBinary"])
    ],
    targets: [
        .target(name: "MonkeyKing"),
        .testTarget(
            name: "MonkeyKingTests",
            dependencies: ["MonkeyKing"],
            path: "Tests/MonkeyKingTests"
        ),
        .binaryTarget(
                    name: "MonkeyKingBinary",
                    url: "https://github.com/CodeEagle/MonkeyKing/releases/download/2.2.0/MonkeyKingBinary.xcframework.zip",
                    checksum: "c186cb3a81a2a9b4434632829ff83f7f4c2b16ab119bf175d1e2e0a5bd88fed3"
                ),
    ]
)
CodeEagle commented 3 years ago

also fixed build error image

nixzhu commented 3 years ago

@CodeEagle Thanks for your contribution!