Using Kingfisher 5.7.1, I am unable to import Kingfisher for one class only - a UIImageView extension.
I can build for generic iOS device but if I try on a simulator or a device I get an import error.
I am able to import in another class but one still gives errors every time.


I have tried de-integrating Pods and re-installing. Deleting derived data, restarting Xcode, restarting computer. I still run into same issue.
import Foundation
import Kingfisher
extension UIImageView {
public func setImageKF(usingURL url:URL) {
self.kf.setImage(with: url)
}
func layoutImageShadow (shadowImg:UIImageView) {
snp.makeConstraints { (maker) in
maker.top.right.equalToSuperview().offset(1)
maker.width.height.equalToSuperview()
}
}
}
If you look at the Kingfisher podspec file, it has some minimum deployment targets:
s.ios.deployment_target = "10.0"
s.tvos.deployment_target = "10.0"
s.osx.deployment_target = "10.12"
s.watchos.deployment_target = "3.0"
It means that this pod won't run in armv7 devices (iPhone 3GS, 4, 4s, 5, 5c) that can't run iOS 10.0.
It will also not run in i386 simulators that emulate 32 bits armv7 devices.
If you try running on a arm64 build configuration, there is a more straightforward error message:
Compiling for iOS 9.0, but module 'Kingfisher' has a minimum deployment target of iOS 10.0:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With