Hi guys, thanks for creating KMM. Im trying to cre...
# multiplatform
g
Hi guys, thanks for creating KMM. Im trying to create a repository with a KMM library that will be compatible to SPM. I have added Package.swift file with the binary link and checksum. But it fails with xcode complaining about wrong hash. It does not write the message fully but I assume it means that checksum was wrong. The project is here https://github.com/shalva97/google-auth-decode and checksum is specified here. the way I generated the hash code is in the pic So how should I generate correct checksum?
j
You can see in the logs that Xcode is checking out the
0.0.18
tag, and we can see that your
Package.swift
file doesn’t contain the proper checksum. You have to create a new tag. And FYI: you can let your cursor over the truncated error message and then a tooltip will appear with the full message. 😉
g
Thanks for response. I just uploaded a new version and now it shows "invalid manifest"
god dam I hate SPM
Is there any tool to validate SPM packages?
What effect should "add anyway" button have? it shows up in the dependencies but not on imports
nvm I think I figured it out. had incorrect Macos version specified