I got past that error by cd'ing to the directory containing the Package.swift and then
swift package compute-checksum /path/to/some.xcframework.zip
Topic:
App & System Services
SubTopic:
General
Tags: