Im having an issue with cloud-kit whenever I create a new CKRecordType programmatically. In the cloud kit dashboard this is the error message I get:
The quick and easy fix would be to click the "Add ID Query Index" button and be done with it, however, I was wondering if there was a way you could accomplish this programmatically. The reason being is because when the app is deployed, the user will have the ability to create new record types and it would be a major hassle and a reck if I had to check cloud-kit every time a user decides to make a new record type.
Any help would be appreciated!
In production you are not allowed to create new recordTypes. Besides that you can only add indexes from the dashboard on development.