Can't change NSPersistentContainer into NSPersistentCloudKitContainer

I want my exiting project that's using Core Data to enable it use NSPersistentCloudKitContainer.


So I set up my project as below documentation "Setting Up Core Data with CloudKit" says.

https://developer.apple.com/documentation/coredata/mirroring_a_core_data_store_with_cloudkit/setting_up_core_data_with_cloudkit


But if I change NSPersistentContainer into NSPersistentCloudKitContainer an error occures.


The error message is "Use of undeclared type 'NSPersistentCloudKitContainer'".


Why this happen?


Are there anyone who can solve this problem?


Please help me.


Thanks in advance.

Replies

Is the Deployment Info, Target set for iOS 13.0?