Cannot find NSDiffableDataSourceSectionSnapshot in Catalyst

Cannot find NSDiffableDataSourceSectionSnapshot when selecting the target for macOS catalyst, but the document describes it can be used in macOS catalyst 14+.

Can I use it in public Xcode12? (that will be released in tomorrow...)

Environment

  • Xcode12 GM(12A7209)


Answered by hacknicity in 632760022
It seems that Xcode 12 GM can't build Mac Catalyst apps which use classes/properties etc. that were added in iOS 14. I get a similar error in one of my apps when I try and build the Catalyst version:

unknown type name 'UISplitViewControllerSplitBehavior'

Xcode 12 beta 6 will build fine but, of course, can't be used to submit for review.

I can build a different app for Catalyst on Xcode 12 GM, presumably because that code doesn't use iOS 14 features.
Accepted Answer
It seems that Xcode 12 GM can't build Mac Catalyst apps which use classes/properties etc. that were added in iOS 14. I get a similar error in one of my apps when I try and build the Catalyst version:

unknown type name 'UISplitViewControllerSplitBehavior'

Xcode 12 beta 6 will build fine but, of course, can't be used to submit for review.

I can build a different app for Catalyst on Xcode 12 GM, presumably because that code doesn't use iOS 14 features.
Cannot find NSDiffableDataSourceSectionSnapshot in Catalyst
 
 
Q