3
3

More than 1 year has passed since last update.

Xcode14.3にアプデするとKingfisherでコンパイルエラーが発生する不具合の対処法

Posted at

エラー内容

Xcode14.3にアプデしたところKingfisherで以下のようなエラーが発生し、アプリがビルドできなくなってしまった

if let placeholder = context.placeholder, let view = placeholder(binder.progress) 
                                                              ^        
error: initializer for conditional binding must have Optional type, not 'AnyView'

環境

Xcode:14.3
Kingfisher:7.2

参考記事

こちらの記事が解決に導いてくれそう

対処法(結論)

バージョンを7.6.2にすれば問題なく動作する模様。
私は以下のようにPodのバージョンを設定した。

.pod
pod 'Kingfisher', '~> 7.6'
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3