title: iOS share extension not getting the image
body: <p>I am sure this is trivial once someone kindly point me in the right direction so my apology for asking a silly question. However I have been searching for days I can't figure out what I am doing wrong.</p>
  
  <p>Scenario: create a simple share extension that receives an image file</p>
  
  <p>Problem: when I access the attachements, the handler is never called albeit I can see the "public.jpg" in the itemProvider but I can't see where the data would be?</p>
  
  <p>What I have done:</p>
  
  <pre><code>1) defined NSExtensionActivationSupportsImageWithMaxCount = 1 as my only activation rule
  2) added CoreMedia framework to the extension
  3) added the same group to both app and app extension
  4) made sure both have the group (1) in the entitlement
  5) made sure both are using a certificate/app id with that group enabled
  6) clean and rebuild several times to no avail.
  </code></pre>
  
  <p>The code:</p>
  
  <pre><code>- (void)didSelectPost {
  /
  for (NSExtensionItem *item in self.extensionContext.inputItems) {
      for (NSItemProvider *itemProvider in item.attachments) {
          if ([itemProvider hasItemConformingToTypeIdentifier:(NSString *)kUTTypeImage]) {
  I can hit this breakpoint --&gt; [itemProvider loadItemForTypeIdentifier:(NSString *)kUTTypeImage options:nil completionHandler:^(UIImage *image, NSError *error) {
  but not this one --&gt; photo = image;
              }];
              break;
          }
      }
  }
  .... and so on and so forth
  </code></pre>