Kingfisher XCode 15 & iOS 17 Support

1.5k Views Asked by At

I just upgraded my XCode to version 15. When I try to return Provider with computed property, it gave me the error below;

Argument type 'ImageResource' does not conform to expected type 'Resource'

Is there any possibility that you update library compatible with new versions.

Regards.

Just update the pod, provider is now not valid.

2

There are 2 best solutions below

4
Iain Coleman On

You just need to replace "ImageResource" with "Kingfisher.ImageResource" wherever the editor says you have an error. No need to do anything else, it should now build as it did before the Xcode update.

0
Lishobh P On

Use Kingfisher.ImageResource as a temporary fix.

ImageResource(name: <#T##String#>, bundle: <#T##Bundle#>)this is creating conflict with KingFisher's ImageResource(downloadURL:URL) method in xcode 15 after updating.

https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes "Xcode 15 release notes" Visit asset catalog section.