5

I am using Kingfisher library for downloading an image from URL and setting to UIIMageView in Swift 4 project.

I know there are API changes between Kingfisher 2 and Kingfisher 3

https://github.com/onevcat/Kingfisher/wiki/Kingfisher-3.0-Migration-Guide

My project was working a few weeks back but after upgrading Xcode, cannot compile the project. It gives error

enter image description here

I have tried deleting derived data and all possible solutions from the links I have got it from google.

Anyone facing the same issue with Kingfisher library?

Note: I have manually added Kingfisher library in the project. Not by pod or other package managers.

nikhilgohil11
  • 1,185
  • 15
  • 26

3 Answers3

3

Use this pod:

pod 'Kingfisher'

Update Your Pod:

pod update

Import this library in your class file:

import Kingfisher
Ravi Padsala
  • 126
  • 2
  • 10
1

This simple line work for me , although we normally don't need to import it

import Kingfisher
YodagamaHeshan
  • 4,996
  • 2
  • 26
  • 36
0

Build Settings>> Search Paths >>Framework Search Path>>Change path to ./ (selecting recursive.)

enter image description here

Md. Ibrahim Hassan
  • 5,359
  • 1
  • 25
  • 45