Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when adding to dependencies #109

Open
Poreis opened this issue Jul 31, 2020 · 1 comment
Open

Error when adding to dependencies #109

Poreis opened this issue Jul 31, 2020 · 1 comment

Comments

@Poreis
Copy link

Poreis commented Jul 31, 2020

First thank you for this awesome library!
So I have done everything like you say but I get this error :

error: dependency 'SwiftSMTP' in target 'Resumos.nosync' requires explicit declaration; provide the name of the package dependency with '.package(name: "SwiftSMTP", url: "https://github.com/IBM-Swift/Swift-SMTP", .upToNextMinor("5.1.0"))' and now I can't install it

@sanzaru
Copy link
Contributor

sanzaru commented Dec 16, 2020

Maybe a bit late, but:

Try to specify a name for the package inside your Package.swift:

dependencies: [
    .package(name: "SwiftSMTP", url: "https://github.com/Kitura/Swift-SMTP", .upToNextMinor(from: "5.1.0")),
],

After specifying the name I could run swift build without problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants