Reputation: 1379
I have a binary .xcframework
swift package that lives on GitHub. Occasionally after users update the package to a new version Xcode starts spitting out this error when resolving the package graph.
checksum of downloaded artifact of binary target [...] does not match checksum specified by the manifest [...]
Why is this occurring? Is there something that's incorrectly configured in the package?
Upvotes: 1
Views: 5226
Reputation: 61
I only remove ~/Library/Caches/org.swift.swiftpm
and It's worked for me.
Upvotes: 0
Reputation: 1379
Clearing SPMs package cache is the only way I know how to mitigate this issue. The package caches lives at:
~/Library/Caches/org.swift.swiftpm/repositories
I usually opt to nuke this whole folder but you can target the specific package instead.
This however is only a temporary solution.
Upvotes: 6