Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Imported declaration warning in Xcode 11

Tags:

When I run my code, Xcode 11 shows some warnings, like:

<unknown>:0: warning: imported declaration 'UITableViewDiffableDataSourceCellProvider' could not be mapped to 'UITableViewDiffableDataSourceReference.CellProvider'
<unknown>:0: warning: imported declaration 'UICollectionViewDiffableDataSourceCellProvider' could not be mapped to 'UICollectionViewDiffableDataSourceReference.CellProvider'.

How can I solve these warnings?

I run my code in Xcode 11, and It runs well in Xcode 10.

No code. If you want, I can show what you want.

I want to solve these warnings.

like image 905
Joker Hook Avatar asked Jun 06 '19 01:06

Joker Hook


2 Answers

Go to: Preferences > location > commandLine tools [drop down] Select: Latest version of Xcode 11.0 (...)

like image 110
rake Avatar answered Sep 21 '22 08:09

rake


Clean your build folder and rebuild.

like image 26
JLundell Avatar answered Sep 18 '22 08:09

JLundell