title: How do I fetch CloudKit records in watchOS app?
body: <p>so far I simply use CloudKit to fetch records from iCloud server with my iOS app;) But now I need to do the same for my watchOS app. I simply do:</p>
  <pre><code>struct TimerView: View {
      @State private var assistant = CloudAssistant.shared
      var body: some View {
          Button {
              print(&quot;Image tapped!&quot;)
              print(&quot;start fetching&quot;)
              let predicate = NSPredicate(value: true)
              assistant.fetchThemAllOf(type: &quot;Service&quot;, database: assistant.privateDatabase, predicate: predicate) { records, error in
                  print(&quot;&gt;&gt;&gt;&gt;&gt;&gt;&quot;)
                  print(error)
                  print(&quot;&gt;&gt;&gt;&gt;&gt;&gt;&quot;)
                  print(records)
              }
          }
          .frame(width: 70, height: 70)
      }
  }
  </code></pre>
  <p>And this is how my iCloud container looks like:</p>
  <pre><code>class CloudAssistant {
      static let shared = CloudAssistant(container: CKContainer(identifier: &quot;iCloud.pl.myidhere&quot;))
      var privateDatabase: CKDatabase {
          return container.privateCloudDatabase
      }
      let container: CKContainer
      @available(iOS 15.0, *)
      @available(iOSApplicationExtension 15.0, *)
      func fetchThemAllOf(type: String, database: CKDatabase, predicate: NSPredicate, completion: @escaping RecordsErrorHandler) {
          let query = CKQuery(recordType: type, predicate: predicate)
          let queryOperation = CKQueryOperation(query: query)
          queryOperation.resultsLimit = 10
          queryOperation.recordMatchedBlock = { recordId, result in
              print(&quot;recordMatchedBlock&quot;)
              print(result)
          }
          queryOperation.queryResultBlock = { result in
              print(&quot;queryResultBlock&quot;)
              print(result)
          }
          database.add(queryOperation)
      }
  }
  </code></pre>
  <p>But all what is printed on console is:</p>
  <pre><code>&quot;Image tapped!&quot;
  &quot;start fetching&quot;
  </code></pre>
  <p>...and nothing more. Why?</p>