I am using UIActivityViewController to share a article url, using the below code,
UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:shareItemArray applicationActivities:nil];
activityVC.excludedActivityTypes = @[UIActivityTypePrint, UIActivityTypeCopyToPasteboard, UIActivityTypeAssignToContact, UIActivityTypeSaveToCameraRoll, UIActivityTypeAirDrop];
[self presentViewController:activityVC animated:YES completion:nil];
The above code working in iOS 9 & 10, but it is not working in iOS 11
I debugged it, the code is executing fine, after that i am getting a error log in console like below
[ShareSheet] ERROR: timed out waiting to establish a connection to the ShareUI view service extension.
Is there any people facing this problem? Is there a workaround?
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.