0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Xcode14.3のwarning : Heterogeneous collection literal could only be inferred to ... について

0
Posted at

Xcode14.3からコンパイルでこのようなwarningが出るようになりました。

Heterogeneous collection literal could only be inferred to '[String : Any]'; add explicit type annotation if this is intentional

調べてみたところSwift5.8のバグのようで、Swift5.9(Xcode15-beta)で試したところこのwarningは出なくなりました。(Xcode14.3.1では変わらず)
https://forums.swift.org/t/swift-5-8-new-warnings-for-any-collections/63484/2

なので、このwarningは無視してXcode15がリリースされるまで待つでよさそうです。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?