title: What does CMErrorDomain error 103. mean? (CMPedometer)
body: <p>I'm struggling totally to get CMPedometer to return any step data. However Iconfigure I get <code>Error Domain=CMErrorDomain Code=103 "The operation couldn’t be completed. (CMErrorDomain error 103.)"</code></p>
  
  <p>I'm using swift and have broken down the <code>queryPedometerDataFromDate</code> query to be as simple as possible. </p>
  
  <pre><code>    let pedometer = CMPedometer()
      let fromDateString = "2015-01-22"
      let toDateString = "2015-01-23"
      let dateFormatter = NSDateFormatter()
      dateFormatter.dateFormat = "YYYY-MM-DD"
      let fromDate = dateFormatter.dateFromString(fromDateString)
      let toDate = dateFormatter.dateFromString(toDateString)
  
      pedometer.queryPedometerDataFromDate(fromDate, toDate: toDate) { (data:CMPedometerData!, error:NSError!) -&gt; Void in
  
          if error == nil {
              println(data)
          } else {
              println(error)
          }
      }
  </code></pre>
  
  <p>I've enabled motion detection for my app, and have no problem getting similar data out of HealthKit. </p>
  
  <p>I must be missing something simple, but I can't see what it is!</p>