title: WatchKit: Animation Images stored in App Group
body: <p>I'm using App Groups to store an <code>NSData</code> of JPEG images created with <code>UIImageJPEGRepresentation()</code>. Now I want to use the images data contained in that array as animation frames for a <code>WKInterfaceImage</code> instance.</p>
  
  <p>I've successfully archived my <code>NSData</code> of JPEG images from my App Group using <code>NSKeyedUnarchiver</code>, and now I'm caching the images needed to convey the animation.</p>
  
  <pre><code>    var frames = ...
      for (index, frame) in enumerate(frames) {
          WKInterfaceDevice().addCachedImageWithData(frame, name: "frame" + String(index))
      }
  
      animationImage.setImageNamed("frame")
      animationImage.startAnimating()
  </code></pre>
  
  <p>Unfortunately this code does not seem to work; when I open the corrisponding <code>WKInterfaceController</code>, I just see a loading screen for 2/3 minutes than a "Unable to find image named "frame" on Watch
  " message on the console. I cannot use Images.xcassets folder to store the animation frames since they are dynamically generated by the app.</p>
  
  <p>Does anybody know how to solve this problem?</p>