vapor / auth

👤 Authentication and Authorization framework for Fluent.
53 stars 34 forks source link

Can not generate Xcode project #44

Closed Shunzi007 closed 6 years ago

Shunzi007 commented 6 years ago

Here is the Package.swift file

let package = Package(
    name: "Foo",
    dependencies: [
        .package(url: "https://github.com/vapor/vapor.git", from: "3.0.3"),
        .package(url: "https://github.com/vapor/fluent.git",from: "3.0.0-rc.2.4.1"),
        .package(url: "https://github.com/vapor/fluent-postgresql.git", from: "1.0.0-rc.2.3"),
        .package(url: "https://github.com/vapor/auth.git", from: "2.0.0-rc.4.1"),
        .package(url: "https://github.com/vapor/leaf.git", from: "3.0.0-rc.2.2"),
    ],
    targets: [
        .target(name: "App", dependencies: [
            "Vapor",
            "Fluent",
            "FluentPostgreSQL",
            "Auth",
            "Leaf",
            ]),
        .target(name: "Run", dependencies: ["App"]),
        .testTarget(name: "AppTests", dependencies: ["App"])
    ]
)

and the eror log

Generating Xcode Project [Failed]
'Auth' /Users/h172462/Desktop/Foo: error: product dependency 'Auth' not found
warning: dependency 'Auth' is not used by any target

Error: Could not generate Xcode project: 'Foo' /Users/h172462/Desktop/Foo: error: product dependency 'Auth' not found
warning: dependency 'Auth' is not used by any target
0xTim commented 6 years ago

@Shunzi007 the target dependency name is Authentication - change it to that from Auth and it should work

Shunzi007 commented 6 years ago

thanks, it works now.