title: UIActivityViewController is not working in iOS 11
body: <p>I am using UIActivityViewController to share a article url, using the below code,</p>
  
  <pre><code>UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:shareItemArray applicationActivities:nil];
  
  activityVC.excludedActivityTypes = @[UIActivityTypePrint, UIActivityTypeCopyToPasteboard, UIActivityTypeAssignToContact, UIActivityTypeSaveToCameraRoll, UIActivityTypeAirDrop]; 
  
  [self presentViewController:activityVC animated:YES completion:nil];
  </code></pre>
  
  <p>The above code working in iOS 9 &amp; 10, but it is not working in iOS 11</p>
  
  <p>I debugged it, the code is executing fine, after that i am getting a error log in console like below</p>
  
  <p>[ShareSheet] ERROR:  timed out waiting to establish a connection to the ShareUI view service extension.</p>
  
  <p>Is there any people facing this problem? Is there a workaround?</p>
  
  <p>EDIT: After clean and run the project, i tried to do the same, after 2 or 3 times the UIActivityViewController got opened, again i tried, for the first time i am getting the same above error, second time only the UIActivityViewController is getting opened.</p>