Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with Kingfisher in Xcode11 - Could not find module 'Kingfisher' for target 'armv7-apple-ios'; found: arm64, arm64-apple-ios

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.

Building for device

Building for simulator

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()
        }
    }
}
like image 759
FSUWX2011 Avatar asked Nov 04 '25 11:11

FSUWX2011


1 Answers

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:

like image 66
alxlives Avatar answered Nov 07 '25 11:11

alxlives



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!