Fetching data from CloudKit dashboard

I am creating an app in XCode and I have inputted my data into the CloudKit dashboard. I have looked at a number of tutorials on how to fetch data from the CloudKit dashboard however it doesn't seem to be working. Has anyone else had this problem?

Replies

That's too general statement.


Please show the code you have tried and what is not working as expected.

Did you read this tutorial ?

h ttps://www.raywenderlich.com/4878052-cloudkit-tutorial-getting-started

You are describing two different ways of interacting with CloudKit

1) "an app in Xcode"

2) "inputted my data into the CloudKit dashboard"


Then you ask about "fetch data from the CloudKit dashboard"


Are you looking at the dashboard and trying to display data that is in CloudKit? What error message are you getting when you tap "Query Records"?

Yes that is correct, I have inputted data into the cloudkit dashboard and when I try to fetch the data, I am getting the following result:

I am not sure what this means?


<CKQuery: 0x600001eecf00; recordType=_______, predicate=TRUEPREDICATE>

Anything else? That's not an error message. It is not a fetch; it is a query. There is a segmented controller titled "Using" that lets you chose 'fetch/query/changes'. If you pick 'fetch' you need to enter recordNames. If you chose 'query' you need to describe a search query and have the indexes marked 'searchable'.


Are you doing a fetch or a query?