1 year ago
#215434
mahbaleshwar hegde
Swift Package Manager failed to resolve dependencies: artifacts already exists in file system. fatalError
I have uploaded my binary artifacts in maven-central repository. I am fetching these libraries through SPM. I am getting the below error most of the times.
xcodebuild: error: Could not resolve package dependencies:
failed downloading which is required by binary target:
DerivedData/SourcePackages/artifacts/MyLib/MyLib.xcframework.zip already exists in file system. fatalError
My Swift package manifest targets as below:
targets: [
// ---- Binaries -----
.binaryTarget(
name: "MyLib",
url: "\(myPrivateArtefactURL)/MyLib.xcframework.zip",
checksum: "checksum"
)
]
However dependencies are getting resolved if I delete artficats folder manually and run the resolving dependencies command. I am not understanding what is the problem?. I want to get rid off this manually deleting the folder.
ios
swift
swift-package-manager
maven-central
swift-package
0 Answers
Your Answer