2

If I try to archive my project, I get many compiler errors with Kingfisher for SwiftUI. I can run code on my device and on the simulator without any problems.

Xcode Version 13.0 (13A233) SPM KingFisher 6.3.1

Have anyone got an idea?

enter image description here

Berkant
  • 31
  • 3

1 Answers1

1

You need Kingfisher 7.x for Xcode 13.

It's also good practice to clean the build folder after the package update, before rebuilding.

Kingfisher's GitHub page has additional explanations:

If you need to support from iOS 10 (UIKit/AppKit) or iOS 13 (SwiftUI), use Kingfisher version 6.x. But it won't work with Xcode 13.

If you need to use Xcode 13 but cannot upgrade to v7, use the version6-xcode13 branch. However, you have to drop iOS 10 support due to an Xcode 13 bug.

Kingfisher requirements

Eric Aya
  • 69,473
  • 35
  • 181
  • 253