Jacob Lange
Jacob Lange

Reputation: 1379

Swift package manager checksum of binary target does not match

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

Answers (3)

Geo
Geo

Reputation: 61

I only remove ~/Library/Caches/org.swift.swiftpm and It's worked for me.

Upvotes: 0

dhaval
dhaval

Reputation: 1

I reset my Xcode Cache and it resolved the issue

Upvotes: 0

Jacob Lange
Jacob Lange

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

Related Questions