title: Crashed: com.apple.root.default-qos
body: <p>I have a fairly simple app that parses a RSS feed and shows it's content in a table view. It's available on the App Store. I have Crashlytics crash reporting integrated. I recently received two reports. These are a little difficult to decipher.</p>
  
  <p>This has occurred in an iPhone 6 running iOS 10.2.1.</p>
  
  <p><a href="https://i.stack.imgur.com/IUXGb.png" rel="noreferrer"><img src="https://i.stack.imgur.com/IUXGb.png" alt="enter image description here"></a></p>
  
  <p>This is from an iPhone 5 running iOS 10.2.1.</p>
  
  <p><a href="https://i.stack.imgur.com/8jHin.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8jHin.png" alt="enter image description here"></a></p>
  
  <p>Even though it says it's crashing due to privacy violations, I'm not accessing any services that requires permission in my app.</p>
  
  <p>Also searching on <em>com.apple.root.default-qos</em> lead me to believe that this may have something to do with background threads. The only place where I use a background thread is to parse the RSS feed data.</p>
  
  <pre><code>DispatchQueue.global(qos: .background).async {
  
      guard let data = try? Data(contentsOf: URL) else {
          return
      }
  
      do {
          let xmlDoc = try AEXMLDocument(xml: data)
  
          if let items = xmlDoc.root["channel"]["item"].all {
              self.posts.removeAll()
  
              for item in items {
                  let title = item["title"].value ?? ""
                  // ...
                  self.posts.append(jobPost)
              }
  
              DispatchQueue.main.async {
                  self.saveposts(self.posts)
                  self.posts.sort { $0.publishDate &gt; $1.publishDate }
                  self.tableView.reloadData()
                  UIApplication.shared.toggleNetworkActivityIndicator(show: false)
                  self.toggleUI(enable: true)
                  if self.refreshControl.isRefreshing { self.refreshControl.endRefreshing() }
              }
  
          }
  
      } catch let error as NSError {
          print("RSS parsing failed: \(error)")
          self.showErrorAlert(error)
          UIApplication.shared.toggleNetworkActivityIndicator(show: false)
          self.toggleUI(enable: true)
          if self.refreshControl.isRefreshing { self.refreshControl.endRefreshing() }
      }
  }
  </code></pre>
  
  <p>I tested this code on my iPhone 5 running iOS 9.3.5 and simulators running iOS 10.2 but no crash occurred.</p>
  
  <p>Is there any other way to track down this problem? </p>