GithubHelp home page GithubHelp logo

Adding SPM dependency to Xcode with default "up to 1.0.0" results in package resolution error due to sovran URL about analytics-swift HOT 7 CLOSED

segmentio avatar segmentio commented on May 31, 2024
Adding SPM dependency to Xcode with default "up to 1.0.0" results in package resolution error due to sovran URL

from analytics-swift.

Comments (7)

migs647 avatar migs647 commented on May 31, 2024 1

Thanks for calling this out @JetForMe. I'll take a look at this. Sovran is needed, we will look at auth issues with that. Will update.

from analytics-swift.

migs647 avatar migs647 commented on May 31, 2024

@JetForMe I was able to replicate your issue. You need to set up your ssh keys with github. I tested on a fresh user account without any ssh keys and ran into your issue. Unfortunately, even though our package.swift is using https and use the https analytics-swift portion, Xcode forces Sovran to a ssh format .. ie [email protected]:segmentio/analytics-swift.git. Once I added my SSH key, it works as intended. Tested on Xcode 13 and Xcode 12.

Please use https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh in order to add your ssh key.

from analytics-swift.

JetForMe avatar JetForMe commented on May 31, 2024

I'm not sure it's correct that Xcode forces Sovran to use git@…. I'm currently using a specific git commit hash to pull from your main branch, and it works just fine. In that branch, your Package.swift refers to Sovran using "https://github.com/segmentio/Sovran-Swift.git"

Requiring setting up SSH keys makes build automation that much harder to deal with.

from analytics-swift.

bsneed avatar bsneed commented on May 31, 2024

@JetForMe let me know if the 1.0.2 that just got tagged solves it for you.

from analytics-swift.

bsneed avatar bsneed commented on May 31, 2024

Gonna assume the answer is "YES" here. :D

from analytics-swift.

JetForMe avatar JetForMe commented on May 31, 2024

Yes! I'm so sorry. I had this message flagged for weeks (months!) and got so busy at work, I forgot why I flagged it, but kept thinking I didn't have time to deal with it. Thank you for the rapid fix!.

from analytics-swift.

bsneed avatar bsneed commented on May 31, 2024

No worries at all! My pleasure. :high-five:

from analytics-swift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.