SDWebImageSwiftUI icon indicating copy to clipboard operation
SDWebImageSwiftUI copied to clipboard

Can't add package

Open repoluhun opened this issue 1 year ago • 14 comments

image I'm using the Xcode 16 beta

repoluhun avatar Sep 19 '24 13:09 repoluhun

Don't know what's the issue. Provided the full log, maybe something about your deployment target or version limit.

I tried and it works.

dreampiggy avatar Sep 20 '24 02:09 dreampiggy

I also get this error, in target deployment target 16.0 , version limit 3.1.2. @repoluhun how you fix this?

Cavidan998 avatar Oct 04 '24 04:10 Cavidan998

I also get this error, in target deployment target 16.0 , version limit 3.1.2. @repoluhun how you fix this?

Imma be honest with you I just dropped the package and quit the project I was working on lmao

repoluhun avatar Oct 04 '24 05:10 repoluhun

I work on multiple projects, they are on same target version. But one of them got this library, but other one did not get. This is interesting.

Cavidan998 avatar Oct 04 '24 06:10 Cavidan998

I work on multiple projects, they are on same target version. But one of them got this library, but other one did not get. This is interesting.

Yeah, I could honestly not tell you

repoluhun avatar Oct 04 '24 08:10 repoluhun

Because I can not reproduce this issue on my own demo, I can zip and send it here.

Can you zip your example project to me and have a check ? Because if I can not reproduce a issue, nothing can be done to fix it.

dreampiggy avatar Oct 08 '24 03:10 dreampiggy

Here: SDWebImageSwiftUIDemo.zip

Fetched successfully. 截屏2024-10-08 11 48 16

dreampiggy avatar Oct 08 '24 03:10 dreampiggy

Hi, I had "&" in the name of the project and when I change it, it is works :D, but not sure that was the issue.

GrzegorzMzyk avatar Nov 03 '24 18:11 GrzegorzMzyk

Hi, I had "&" in the name of the project and when I change it, it is works :D, but not sure that was the issue.

Hi, maybe clearing SPM history would help you

https://forums.developer.apple.com/forums/thread/763897

volk-r avatar Jan 16 '25 18:01 volk-r

  • Restart Xcode and try again.
  • Clean Build Folder.
  • Ensure Xcode is updated.
  • Delete DerivedData .
  • Check the package URL and version. When I do that it's start working :)

GrzegorzMzyk avatar Jan 17 '25 10:01 GrzegorzMzyk

Same problem with Xcode 16.2

Image

azhm avatar Feb 22 '25 11:02 azhm

@azhm delete deriveddata folder, and restart your computer, also select different options like add, exact version, branch, major or minor version. It will resolve, its about xcode not about library

Cavidan998 avatar Feb 22 '25 11:02 Cavidan998

@Cavidan998 Thank you for your reply. I tried it. It didn't work.

But I have found a problem that seems to be a conflict with this library. https://github.com/groue/GRDB.swift

Because I had no problem installing a separate library If I install both libraries together, I get an error.

azhm avatar Feb 22 '25 15:02 azhm

I'm experiencing same as @azhm

Yoojin99 avatar Mar 11 '25 07:03 Yoojin99