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

Does Carthage support having different versions of the same library together? #3356

Open
ssayfulin69 opened this issue Oct 30, 2023 · 0 comments

Comments

@ssayfulin69
Copy link

ssayfulin69 commented Oct 30, 2023

  • carthage install method: [ ] .pkg, [x] homebrew, [ ] source
  • which carthage: /Users/name/.mint/bin/carthage
  • carthage version: 0.39.0
  • xcodebuild -version: Xcode 14.3.1 Build version 14E300c
  • Are you using --no-build? no
  • Are you using --no-use-binaries? no
  • Are you using --use-submodules? no
  • Are you using --cache-builds? no
  • Are you using --new-resolver? no
  • Are you using --use-xcframeworks? yes

Let's say I have

Library A dependent on 2 libraries.

LibraryA
-> LibraryB 0.0.2
-> LibraryC 0.0.2

And Library B depends on Library C as well, but with different version

LibraryB
-> LibraryC 0.0.1

When running Carthage for Library A, I expect the resolved outcome to be

LibraryA
-> LibraryB 0.0.2
-> -> LibraryC 0.0.1
-> LibraryC 0.0.2

so that I could have 2 versions of Library C independently.

But the actual result will be an error:

Could not pick a version for LibraryC, due to mutually incompatible requirements:
    == 0.0.2
    == 0.0.1

Can I achieve the result I want with Carthage?

@ssayfulin69 ssayfulin69 changed the title Does Carthage support different versions of the same library if nested? Does Carthage support having different versions of the same library together? Oct 30, 2023
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

1 participant