1

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?

Jacob Lange
  • 1,299
  • 14
  • 22
  • Did you try this https://stackoverflow.com/a/64070049/1187415 ? – Martin R Jan 28 '22 at 08:12
  • yeah unfortunately that answer doesn't work in this scenario, which is why I felt this warranted it's own question. Clearing the cache manually, as I answered, does however provide a workaround but it's temporary, eventually the cache will bug again. – Jacob Lange Jan 28 '22 at 17:25
  • 1
    I had to remove items related to "bitbucket.org" from macOS Keychain in order to eliminate checksum error. See details in my comment: https://github.com/facebook/facebook-ios-sdk/issues/2059#issuecomment-1144019427 – Vlad Jun 01 '22 at 19:08

1 Answers1

5

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.

Jacob Lange
  • 1,299
  • 14
  • 22