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 installing Swift Package #147

Open
hiropome opened this issue Nov 5, 2021 · 8 comments
Open

Error installing Swift Package #147

hiropome opened this issue Nov 5, 2021 · 8 comments

Comments

@hiropome
Copy link

hiropome commented Nov 5, 2021

Hi, thanks for sharing this package.
I tried to install via Swift Package but got the error below stating "keychain swift could not be resolved"
Could you kindly help me out?

スクリーンショット 2021-11-05 11 35 46

  • Library setup method: Swift Package Manager.
  • Xcode version: 13
  • OS version: MacOS Big Sur 11.6
@ChrisMarshallNY
Copy link

I think that this may be due to Xcode now insisting on using HTTPS for everything.

I use the SSH version of the URI, and it works for me: git@github.com:evgenyneu/keychain-swift.git

@gklka
Copy link

gklka commented Dec 9, 2021

Same error for me. The error message is not visible on the image, here it is:

the manifest is missing a Swift tools version specification; consider prepending to the manifest '// swift-tools-version:5.5.0' to specify the current Swift toolch...

(the rest is emitted)

Does not matter if I use the https or the git URL version.

@evgenyneu
Copy link
Owner

Fixed this in the new version: https://github.com/evgenyneu/keychain-swift/blob/master/Package.swift

@Hustenbonbon
Copy link

Hi & thanks! Can you create a release tag for that?

@evgenyneu
Copy link
Owner

Already done, it's in version 20.0.0

@Hustenbonbon
Copy link

Thanks for the quick response! Weird, when adding over XCode version 9 is proposed as default. It looks like SPM is sorting the major versions alphanumeric (which sounds to strange as that I want to believe it). My personal problem is resolved though, so thanks for the quick response and the awesome helper tool!
image

@Throvn
Copy link

Throvn commented Apr 25, 2022

Thanks, I had the exact same problem!

So in a nutshell, XCode is a baddie and shows an old version as default.
To resolve this, just change the dependency rule to branch: master.
In case someone else is new to swift ;)

@ChrisMarshallNY
Copy link

I don't like using master for my dependencies. I'll stick with pinned releases.
I use master when debugging my own modules, or for demo test harnesses, but for releases to be included in other places (like the App Store, or as a published SPM module), I use semantic versioned releases.

My pattern is that I have Major.Minor.Fix.

Major is for breaking API changes, or major features.

Minor is for API changes that won't break things, but are worth testing. There may be some app UI changes, such as rearranged screens, and whatnot.

Fix is for bug fixes. It may include very minor API changes or app changes, if the changes fix a bug.

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

6 participants