Kingfisher: Errors in Swift 4 and Kingfisher 4.0.1

Created on 16 Sep 2017  Â·  5Comments  Â·  Source: onevcat/Kingfisher

Check List

Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

Issue Description

Errors from methods changing.

What

After updating to version 4.0.1, I'm still getting these errors:

'cropped(to:)' has been renamed to 'cropping(to:)'
'applyingFilter(_:parameters:)' has been renamed to 'applyingFilter(_:withInputParameters:)'

Reproduce

The pod cannot be built with Xcode 9 GM Seed.

Most helpful comment

Kingfisher 4 is for Swift 4. If you are using Swift 3.2, please roll back to Kingfisher 3.

All 5 comments

Kingfisher 4 is for Swift 4. If you are using Swift 3.2, please roll back to Kingfisher 3.

Sorry, I am using Swift 4

Please check:

  1. The Swift Version setting of Kingfisher is set to Swift 4.
  2. If you have a .swift-version file under your project, make sure the content of it is "4.0".
  3. Try to clean your project.

If the problem is still there, I suggest to submit it to CocoaPods, since there should be no problem in Kingfisher for it. We have already been using it in our Swift 4 project for a while.

Thanks I fixed it by changing the language to Swift 4 for Kingfisher.

Version 4.1.0 should fixed this kind of problems (mismatching versions with Kingfisher code and build setting when used with CocoaPods)

Ref: #781

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Tarpsvo picture Tarpsvo  Â·  5Comments

damirstuhec picture damirstuhec  Â·  3Comments

rainerjungwirth picture rainerjungwirth  Â·  4Comments

Minitour picture Minitour  Â·  4Comments

nickgate picture nickgate  Â·  4Comments