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
Johann Pardanaud
12/07/2022, 11:05 PM
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
Giorgi
12/08/2022, 5:10 PM
Thanks for response.
I just uploaded a new version and now it shows "invalid manifest"
Giorgi
12/08/2022, 5:11 PM
god dam I hate SPM
Giorgi
12/08/2022, 5:11 PM
Is there any tool to validate SPM packages?
Giorgi
12/08/2022, 5:13 PM
What effect should "add anyway" button have? it shows up in the dependencies but not on imports
Giorgi
12/08/2022, 5:53 PM
nvm I think I figured it out. had incorrect Macos version specified