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

Unable to add via SPM. #265

Open
mafhaam opened this issue Jul 24, 2023 · 5 comments
Open

Unable to add via SPM. #265

mafhaam opened this issue Jul 24, 2023 · 5 comments

Comments

@mafhaam
Copy link

mafhaam commented Jul 24, 2023

When trying to add giving this error:

Screenshot 2023-07-25 at 12 12 07 AM
@leoparenti
Copy link

leoparenti commented Aug 24, 2023

The problem is Package.swift was generated with "// swift-tools-version:5.1"

I have done the PR for fix it (#266) and a fork if u need:

.package(url: "https://github.com/leoparenti/OneTimePassword", from: "3.2.1"),

@djangdal
Copy link

djangdal commented Oct 8, 2023

@leoparenti the repo at https://github.com/leoparenti/OneTimePassword is private

@krypt-lx
Copy link

The example from readme.md gives me an issue too:

error: Dependencies could not be resolved because no versions of 'onetimepassword' match the requirement 4.0.0..<5.0.0 and root depends on 'onetimepassword' 4.0.0..<5.0.0.

@leoparenti
Copy link

so I ask A pull request to add fix for Swift 5.8
#268

sorry I set My repo public again
https://github.com/leoparenti/OneTimePassword

@krypt-lx
Copy link

krypt-lx commented Nov 13, 2023

In same case in another lib I used .package(url:revision:) to specify commit containing a valid package.swift

WIth this lib, though, its dependency do not work in modern SPM for me anymore (had to clone it and update the project settings: ObjC bridging related issues)

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

4 participants