问题
I see how to create record types and add records one at a time in the CloudKit dashboard. I want to try adding a few hundred records for testing. Is there any way to import CSV or JSON files into dashboard?
回答1:
No there is not. You have to create an import mechanism in your app. (Or you could use the CloudKit api from another app/website)
回答2:
On one hand you can only create records one at a time in the CloudKit dashboard.
On the other hand, you can import a CSV or JSON file as a CKAsset field in each record. Then your app can fetch that CKRecord and parse the CKAsset field.
来源:https://stackoverflow.com/questions/32574466/is-there-anyway-to-import-bulk-data-through-the-cloudkit-dashboard