使用 Xcode 12 beta 和 swift-tools-version 5.3,您可以链接到一个框架,如下所示:
.binaryTarget(
name: "Stripe",
url: "https://github.com/stripe/stripe-ios/releases/download/v19.3.0/Stripe.xcframework.zip",
checksum: "fe459dd443beee5140018388fd6933e09b8787d5b473ec9c2234d75ff0d968bd"
)
但是当我需要更新校验和(我错了)时,我得到了: artifact of binary target 'Stripe' has changed checksum; this is a potential security risk so the new artifact won't be downloaded
当我需要更改校验和时,如何重置或覆盖它?
最佳答案
为了摆脱错误,您需要清除 Xcode 的本地包缓存。
在 Xcode 的文件菜单中,选择“Swift Packages”,然后选择“Reset Package Caches”
关于xcode - 如何处理 Swift 包的依赖工件校验和?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62761741/