Error on generating Xcode project

Hi!

I had to regenerate Xcode project and when I did this I got an error:

package at '/Users/sergey/Desktop/TILApp' is using Swift tools version 3.1.0 which is no longer supported; consider using '// swift-tools-version:5.2' to specify the current tools version

I ran swift package --set-current. After this I got another errors (actually bunch of them):

dependency 'FluentPostgreSQL' in target 'App' requires explicit declaration; provide the name of the package dependency with '.package(name: "FluentPostgreSQL", url: "https://github.com/vapor/fluent-postgresql.git", from: "1.0.0")'

I changed every package in Package.swift and finally got this error:

declared name 'Authentication' for package dependency 'https://github.com/vapor/auth.git' does not match the actual package name 'Auth'

Switching to Auth name doesn’t help.

Any help is appreciating.

@krissense Unfortunately Swift 5.2 has broken a lot of stuff with how packages work. I’ve just pushed an update to the Vapor TIL project in GitHub which should help

1 Like

ok, I see, package name is Auth, but product name is Authentication, that’s the tricky part. Thank you, Tim.

Cheers!

1 Like