title: How to expose and retrieve files in iCloud Drive on iOS8 provided by OS X application
body: <p>I can store files into iCloud Drive programmatically from an OS X app (10.10) and from an iOS app (8.4) using a common ubiquity identifier (ex: iCloud.com.mycompany.CommonFiles), with the same Apple ID.</p>
  
  <p>In the OS X application, I can identify or retrieve all the files in iCloud Drive, regardless of where they originated (locally or remotely), using that "common" ubiquity ID and NSFileManager contentsOfDirectoryAtURL: etc.</p>
  
  <p>In iOS 8 however, although the iOS app seems to put files in the right place in iCloud Drive (such that they're visible in an OS X Finder, and retrievable in OS X), it can ONLY identify and retrieve files that it generated - files in iCloud Drive created on any other device are invisible to the iOS app.</p>
  
  <p>What do I have to do in an iOS app to see and use (programmatically, not via the UIDocumentPicker) ALL the ubiquitous contents of the Documents directory that originated under the same common ubiquity identifier?  </p>
  
  <p>(This used to work in the old "Documents and Data" - pre iCloud Drive - technique where the "common" ubiquity identifier was prefixed with our company team ID - now replaced with "iCloud".  Once users opted-in to iCloud Drive, however, that approach to common file sharing between apps on OS X and iOS was lost.)</p>