ios - Error - did not find required record type -
so feel though close cracking first cloudkit practice @ last moment xcode unable find record type: "diningtypes".
i have no errors or warnings in xcode. cloudkit dashboard set development. have correct spelling of record type. unsure dilemma is. may stretching here have wrong function of code taken verbatim working tutorial.
therefore, missing function or using missed function or other dastardly nuisance?
var categories: array<ckrecord> = [] override func viewdidload() { super.viewdidload() func fetchdiningtypes() { let container = ckcontainer.defaultcontainer() let publicdatabase = container.publicclouddatabase let predicate = nspredicate(value: true) let query = ckquery(recordtype: "diningtypes", predicate: predicate) publicdatabase.performquery(query, inzonewithid: nil) { (results, error) -> void in if (error != nil) { print("error" + (error?.localizeddescription)!) } else { result in results! { self.categories.append(result) } nsoperationqueue.mainqueue().addoperationwithblock( { () -> void in self.tableview.reloaddata() }) } } } fetchdiningtypes() }