CloudKit has not been reliable for many people (including developers), for the past several months or more.
Do you actually need to use a remote sync option like CloudKit?
There is a forum post covering the considerations when choosing a sync method: Sync Types Explained