2

When adding the usercentrics package in swift package manager i get the following error:

invalid archive returned from 'https://bitbucket.org/usercentricscode/usercentrics-spm-sdk/downloads/Usercentrics-2.8.1.xcframework.zip' which is required by binary target 'Usercentrics'

enter image description here

When i download the framework in browser it returns a valid framework for the different platforms.

Framework folders

however when i try to do git clone (not sure if this is the right way to test it) it clones a folder with only a package.swift

enter image description here

I tried to remove any bitbucket ssh keys or certificates i might have. i cleaned the project, deleted derived data and reset the package cache. unfortunately without success. Searching for this error message did also not yield any results. usercentrics (in case this is specific to their repo) could also, as of now, not provide a solution to this issue.

Any help is greatly appreciated.

warly
  • 1,458
  • 1
  • 16
  • 21

1 Answers1

0

I've the same issue and I resolved by integrating the dependencies with Cocoapods: https://docs.usercentrics.com/cmp_in_app_sdk/latest/getting_started/install/

  • Thank you for mentioning it. great if it works for you, but we're not going back to cocoapods, just because one 3rd Party framework is misbehaving :) – warly Jul 30 '23 at 14:02
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Tyler2P Aug 02 '23 at 10:26