title: Old Core Data Sync in to CloudKit "iCloud"
body: <p>I have an app that uses Core Data but now I'm adding CloudKit to my app and I'm having issues on synchronising all the old Core Data.
  Does anyone have the same issue? Does anyone have any idea how to synchronise old Core Data?</p>
  
  <pre><code>func fetch(completion: (_ comple: Bool) -&gt; ()) {
          guard let managedContext = appDelegate?.persistentContainer.viewContext else { return }
          let fetchRequest = NSFetchRequest&lt;Goal&gt;(entityName: "Goal")
          do {
              goalPasswords = try managedContext.fetch(fetchRequest)
              completion(true)
          } catch {
              debugPrint("Fetch Error \(error.localizedDescription)")
              completion(false)
          }
      }
  </code></pre>