You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SR-15262] SwiftPM 5.5 Fails to resolve dependencies #4385
swift-driver version: 1.26.9 Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
Target: x86_64-apple-macosx11.0
macOS 11.4
Mac mini (2018)
Memory 8gb
CPU 3.6 GHz Quad-core Intel i3
Additional Detail from JIRA
Votes
0
Component/s
Package Manager
Labels
Bug
Assignee
None
Priority
Medium
md5: 587840783e23602723f5ec4c441a8b6f
Issue Description:
When trying to work on Vapor/Redis, SwiftPM fails to resolve dependencies.
When running swift package resolve, or through Xcode, SwiftPM fails to resolve dependencies using Swift 5.5 (release), but this happened even with beta builds.
The error message is repeated for each dependency in the graph
As an observation: I only encountered this issue with every Xcode 13 beta, except the first one on my Macbook Pro. The Xcode 13 RC fixed this issue on my MBP.
However, for my mac mini, no version of Xcode 13 is working for me.
I can't reproduce it with the latest Xcode both from Xcode or SPM.
Swift version: Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
Target: arm64-apple-macosx12.0
Unix version: Darwin 21.2.0 Darwin Kernel Version 21.2.0: Tue Nov 16 23:24:18 PST 2021; root:xnu-8019.61.4~4/RELEASE_ARM64_T8101 arm64 arm;
macOS version: 12.1
Xcode-select path: '/Applications/Xcode.app/Contents/Developer'
Xcode: Xcode 13.1 (Build version 13A1030d)
Activity
Mordil commentedon Sep 30, 2021
As an observation: I only encountered this issue with every Xcode 13 beta, except the first one on my Macbook Pro. The Xcode 13 RC fixed this issue on my MBP.
However, for my mac mini, no version of Xcode 13 is working for me.
ktoso commentedon Sep 30, 2021
Very weird, thank you for the report!
ktoso commentedon Sep 30, 2021
@swift-ci create
Mordil commentedon Sep 30, 2021
I updated my Mac mini to 11.6 to see if Xcode 13 RC 1 would work with that version, and I'm getting the same issue.
Mordil commentedon Sep 30, 2021
Interestingly, when trying to resolve dependencies for RediStack, only a single error is reported by SwiftPM for the SwiftServiceDiscovery package:
However, when trying to resolve Vapor/Redis, practically the entire dependency graph throws the same error
neonichu commentedon Oct 4, 2021
Cannot repro this, could you please try deleting your SwiftPM cache? It is located at `~/Library/Caches/org.swift.swiftpm`.
Mordil commentedon Oct 4, 2021
@neonichu Does Xcode not do this when using File > Swift Packages > Reset Package Caches?
Kyle-Ye commentedon Dec 3, 2021
> Does Xcode not do this when using File > Swift Packages > Reset Package Caches?
@Mordil No, it seems only clean the derivedData related cache.
Kyle-Ye commentedon Dec 3, 2021
I can't reproduce it with the latest Xcode both from Xcode or SPM.
Swift version: Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
Target: arm64-apple-macosx12.0
Unix version: Darwin 21.2.0 Darwin Kernel Version 21.2.0: Tue Nov 16 23:24:18 PST 2021; root:xnu-8019.61.4~4/RELEASE_ARM64_T8101 arm64 arm;
macOS version: 12.1
Xcode-select path: '/Applications/Xcode.app/Contents/Developer'
Xcode: Xcode 13.1 (Build version 13A1030d)
Mordil commentedon Dec 3, 2021
Deleting the cache seems to resolve this. This is why newly cloned projects don't reproduce this