title: Error "[ShareSheet] connection invalidated" error iOS13+ but not on iOS 11.4
body: <p>I want to share a file using the Share Sheet and have written code that seems to work just fine. However I keep seeing these error messages in the log (using Xcode 11.3)</p>
  
  <pre><code>[ShareSheet] connection invalidated
  </code></pre>
  
  <p>I have two physical devices I'm testing on; an iPad running iOS 13.1.2 and an iPhone 6 running 11.4. I don't see these messages on the iPhone with the older iOS on it.  Both cases the sharing seems to work just fine.  Here's the code I'm using using text instead of a file:</p>
  
  <pre><code>let activityViewController = UIActivityViewController(activityItems: ["simple text for test"], applicationActivities: nil)
  activityViewController.excludedActivityTypes = [.message, .airDrop]
  activityViewController.popoverPresentationController?.barButtonItem = myBarButtonItem           
  self.present(activityViewController, animated: true, completion: nil)
  </code></pre>
  
  <p>The message shows up when the share sheet goes away (either because user completes an action, or they tap outside of it to cancel).</p>
  
  <p>Is it safe to ignore these messages?  It's just odd that they didn't show up in the older OS but do in the new one.</p>
  
  <p>Edited on 20 Mar 2020: I validated that I was providing a valid source or barButtonItem. I've changed the code to match that where I'm using a UIBarButtonItem and I still see the ShareSheet connection invalidated error. </p>