BlinkID / blinkid-ios

Everything you need to add AI-driven ID scanning into your native iOS app.
https://microblink.com/products/blinkid
379 stars 89 forks source link

Incorrect checksum in SPM manifest #399

Closed jakubdolejs closed 10 months ago

jakubdolejs commented 11 months ago

Describe your environment

Describe the problem

After updating BlinkID from v6.1.2 using Swift Package Manager I get the following error in Xcode:

xcodebuild: error: Could not resolve package dependencies:
  checksum of downloaded artifact of binary target 'BlinkID' (50ccb0b3f1b980901683fd2042c2981bfaf379703a68a5aed9f773e43704a774) does not match checksum specified by the manifest (cd190bd437a9dd45435494ada51171d7cb01f3cca4497781e6aae0f54ecf0e88)
  fatalError

To reproduce this open Xcode, and in the project navigator select your project. Then, under the Package Dependencies click the + button to add a new package. In the search field and enter: https://github.com/BlinkID/blinkid-ios. Set Dependency Rule to "Up to next major version" and enter 6.2.0 in the version text field.

Then open Terminal in your project folder and enter the following command:

xcodebuild -resolvePackageDependencies

The error message suggests that the checksum in the manifest file (Package.swift) is incorrect.

MBrizic01 commented 11 months ago

Hello @jakubdolejs, thank you for reaching out. We made some changes, and in order to retrieve the latest framework, you should place the 'Dependency Rule' to 'Branch' and type in 'master', as shown in the attached image.

img

As we will not add a version tag for now, please use the master branch or a specific commit.

jakubdolejs commented 10 months ago

That worked. Thank you @MBrizic01