swiftui-cached-async-image icon indicating copy to clipboard operation
swiftui-cached-async-image copied to clipboard

Does not work with iOS 16 / Xcode 14

Open haecksenwerk opened this issue 3 years ago • 6 comments
trafficstars

After installing the package, cachedAsyncImage is not available. Xcode throws the error:

"Cannot find 'CachedAsyncImage' in scope"

haecksenwerk avatar Sep 25 '22 16:09 haecksenwerk

The library doesn't cache image, it simply doesn't work on iOS 15 and 16

mobileuidev avatar Sep 26 '22 12:09 mobileuidev

The library doesn't cache image, it simply doesn't work on iOS 15 and 16

Well, in general, CachedAsyncImage works perfectly fine with iOS 16 when I pull in the source code directly into my project. I think that the issue that I've described is rather related to the package that presumably simply needs a platform target update (as far as I can tell as a swift rookie :)

haecksenwerk avatar Sep 26 '22 14:09 haecksenwerk

@haecksenwerk I had an issue with this as well, In Xcode try, File > Packages -> Reset Package Caches

This worked for me and everything was able to build again

ChrisMoffatt avatar Oct 04 '22 06:10 ChrisMoffatt

@ChrisMoffatt, thanks for sharing. Unfortunately, that didn't work for me.

haecksenwerk avatar Oct 04 '22 18:10 haecksenwerk

Late reply, but you'll need to import the package into the file's scope:

import CachedAsyncImage

betapictoris avatar Jun 18 '23 00:06 betapictoris

You'd also have to add the lbirary in Build Phases -> Link Binary with Libraries

hbarylskyi avatar Mar 20 '24 12:03 hbarylskyi