title: Cannot access NSUserDefaults using app groups one to another
body: <p>I'm working on an app and a widget that the widget needs to get data from app. I've used the following codes to read and write on NSUserDefaults. And also I used <code>$(PRODUCT_BUNDLE_IDENTIFIER).widget</code> for widget and <code>$(PRODUCT_BUNDLE_IDENTIFIER)</code> referring to <a href="https://stackoverflow.com/questions/24118918/sharing-data-between-an-ios-8-share-extension-and-main-app">this</a> post. But widget cannot get the data from app or NSUserDefaults. How can I make it work?</p>
  
  <pre><code>func addTask(name: String?) {
      let key = "keyString"
      tasks.append(name!)
      let defaults = NSUserDefaults(suiteName: "group.Mins")
      defaults?.setObject(tasks, forKey: key)
      defaults?.synchronize()
  
  }
  </code></pre>
  
  <p>///////</p>
  
  <pre><code>let defaults = NSUserDefaults(suiteName: "group.Mins")
  let key = "keyString"
  
  if let testArray : AnyObject = defaults?.objectForKey(key) {
      let readArray : [String] = testArray as! [String]
      timeTable = readArray
      timeTable = timeTable.sort(&lt;)
      print("GOT IT")
      print("timetable: \(timeTable)")
  }
  </code></pre>