iosswiftxcodeswift-package-manager

Couldn't get a list of tags. Unexpectadly did not find the new dependency in the package graph. Package could not be resolved Xcode 16.1


I want to add packages like SnapKit, Resolver, etc. Actually, it doesn't matter what package I want to add - the same result. Even adding a local package. Here is an error error: Couldn't get a list of tags. Unexpectadly did not find the new dependency in the package graph: sourceControl(identity: snapkit, location: SwiftPM.SPMPackageDependency.SourceControlLocation.remote(SwiftPM.SPMSourceControlURL(sourceControlURL: https://github.com/SnapKit/SnapKit.git)), requirement: 5.7.1 – Next Major)

enter image description here enter image description here

Steps that didn't help:

  1. Clear Xcode’s Derived Data and Package Caches Manually:
  1. Delete and Re-add the Dependencies
  2. Disable Package Caching Temporarily
  3. Verify GitHub Access and Authentication
  4. Check Network and GitHub Status (using git clone - it works!)
  5. Restart laptop
  6. List item

Xcode 16.1 macOS 15.1 (Intel Core i7) iOS 18.0


Solution

  • It's an issue related to SourceTree. In version 4.2.9, they added a setting to the .gitconfig file that's breaking SPM.

    More info here: https://jira.atlassian.com/browse/SRCTREE-8176